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

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Sat, 26 Jul 2008 15:06:46 -0000


raeburn		Sat Jul 26 11:06:46 2008 EDT

  Modified files:              
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  - "Edit Answer" button displayed for formularesponse regardless of grading method used (i.e., maxima or sampling).
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.226 loncom/homework/caparesponse/caparesponse.pm:1.227
--- loncom/homework/caparesponse/caparesponse.pm:1.226	Tue Jun 10 11:22:39 2008
+++ loncom/homework/caparesponse/caparesponse.pm	Sat Jul 26 11:06:43 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.226 2008/06/10 15:22:39 www Exp $
+# $Id: caparesponse.pm,v 1.227 2008/07/26 15:06:43 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -311,8 +311,7 @@
 	    if ($unit =~ /\S/) { $result.=" (in $unit) "; }
 	}
         if (($token->[1] eq 'formularesponse') && 
-            ($Apache::inputtags::status['-1'] eq 'CAN_ANSWER') &&
-            (!&Apache::lonxml::get_param_var('samples',$parstack,$safeeval))) {
+            ($Apache::inputtags::status['-1'] eq 'CAN_ANSWER')) {
             $result.=&edit_formula_button($id,"HWVAL_$id");
         }
 	if (  &Apache::response::show_answer() ) {