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

sakharuk lon-capa-cvs@mail.lon-capa.org
Fri, 24 Oct 2003 18:00:42 -0000


sakharuk		Fri Oct 24 14:00:42 2003 EDT

  Modified files:              
    /loncom/homework	rankresponse.pm 
  Log:
  Bug 2323 (problem numbering when printing exam with answers) is fixed for rankresponse.
  
  
Index: loncom/homework/rankresponse.pm
diff -u loncom/homework/rankresponse.pm:1.22 loncom/homework/rankresponse.pm:1.23
--- loncom/homework/rankresponse.pm:1.22	Wed Oct 15 15:40:42 2003
+++ loncom/homework/rankresponse.pm	Fri Oct 24 14:00:42 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # rank style response
 #
-# $Id: rankresponse.pm,v 1.22 2003/10/15 19:40:42 albertel Exp $
+# $Id: rankresponse.pm,v 1.23 2003/10/24 18:00:42 sakharuk Exp $
 # Copyright Michigan State University Board of Trustees
 #
 # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
@@ -104,7 +104,7 @@
 	} elsif ( $target eq 'grade') {
 	    &grade_response($max,$randomize,$tol);
 	}
-	&Apache::lonxml::increment_counter(&getfoilcounts($max));
+	if ($target ne 'answer') {&Apache::lonxml::increment_counter(&getfoilcounts($max));}
     } elsif ($target eq 'edit') {
 	$result=&Apache::edit::end_table();
     }