[LON-CAPA-cvs] cvs: loncom /homework rankresponse.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Wed, 24 Sep 2003 17:57:42 -0000


sakharuk		Wed Sep 24 13:57:42 2003 EDT

  Modified files:              
    /loncom/homework	rankresponse.pm 
  Log:
  Bug 2220 (rankresponse print incorrectly when correct) is fixed. I've removed <br /> html tags and made answers unavailable for the students during printing. The situation is the same as for optionresponse.pm module.
  
  
Index: loncom/homework/rankresponse.pm
diff -u loncom/homework/rankresponse.pm:1.19 loncom/homework/rankresponse.pm:1.20
--- loncom/homework/rankresponse.pm:1.19	Tue Sep 23 11:38:26 2003
+++ loncom/homework/rankresponse.pm	Wed Sep 24 13:57:42 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # rank style response
 #
-# $Id: rankresponse.pm,v 1.19 2003/09/23 15:38:26 sakharuk Exp $
+# $Id: rankresponse.pm,v 1.20 2003/09/24 17:57:42 sakharuk Exp $
 # Copyright Michigan State University Board of Trustees
 #
 # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
@@ -241,7 +241,7 @@
     my $status=$Apache::inputtags::status[-1];
     my @whichopt=(1..($#whichfoils+1));
     my @correctorder=&get_correct_order($tol,@whichfoils);
-    if ( &Apache::response::show_answer() ) {
+    if ( &Apache::response::show_answer() && ($target ne 'tex')) {
 	foreach my $name (@whichfoils) {
 	    my $text=$Apache::response::foilgroup{$name.'.text'};
 	    my $value=shift(@correctorder);