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

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 07 Nov 2002 15:12:23 -0000


sakharuk		Thu Nov  7 10:12:23 2002 EDT

  Modified files:              
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  Fixed my own error - I've by mistake removed if statement in the wrong place.
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.68 loncom/homework/caparesponse/caparesponse.pm:1.69
--- loncom/homework/caparesponse/caparesponse.pm:1.68	Wed Nov  6 12:58:27 2002
+++ loncom/homework/caparesponse/caparesponse.pm	Thu Nov  7 10:12:23 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.68 2002/11/06 17:58:27 sakharuk Exp $
+# $Id: caparesponse.pm,v 1.69 2002/11/07 15:12:23 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -198,6 +198,7 @@
 	     $result.="}. \\vskip 0 mm ";
 	   }
        }
+      if ($Apache::lonhomework::type eq 'exam') {
       	my (@answers)=&Apache::lonxml::get_param_var('answer',$parstack,$safeeval);
 	my (@formats)=&Apache::lonxml::get_param_var('format',$parstack,$safeeval);
 	my $unit=&Apache::lonxml::get_param_var('unit',$parstack,$safeeval);
@@ -308,6 +309,7 @@
 	    $result.='\end{enumerate}';
 	    &Apache::lonxml::increment_counter();
 	}
+    }
   } elsif ($target eq 'edit') {
     $result.='</td></tr>'.&Apache::edit::end_table;
   } elsif ($target eq 'answer' || $target eq 'analyze') {