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

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


sakharuk		Fri Oct 24 13:56:42 2003 EDT

  Modified files:              
    /loncom/homework	optionresponse.pm 
  Log:
  Bug 2323 (problem numbering when printing exam with answers) fixed for optionresponse problems.
  
  
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.90 loncom/homework/optionresponse.pm:1.91
--- loncom/homework/optionresponse.pm:1.90	Wed Oct 15 15:40:42 2003
+++ loncom/homework/optionresponse.pm	Fri Oct 24 13:56:42 2003
@@ -1,7 +1,7 @@
 # LearningOnline Network with CAPA
 # option list style responses
 #
-# $Id: optionresponse.pm,v 1.90 2003/10/15 19:40:42 albertel Exp $
+# $Id: optionresponse.pm,v 1.91 2003/10/24 17:56:42 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -246,7 +246,7 @@
 	}
       }
     }
-    &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();
   }