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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 01 Dec 2005 22:30:57 -0000


albertel		Thu Dec  1 17:30:57 2005 EDT

  Modified files:              
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  - wasn't displaying the instructor provided answer when checkign the instructor;s answer in a formula response
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.182 loncom/homework/caparesponse/caparesponse.pm:1.183
--- loncom/homework/caparesponse/caparesponse.pm:1.182	Thu Dec  1 13:46:48 2005
+++ loncom/homework/caparesponse/caparesponse.pm	Thu Dec  1 17:30:55 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.182 2005/12/01 18:46:48 albertel Exp $
+# $Id: caparesponse.pm,v 1.183 2005/12/01 22:30:55 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -517,7 +517,7 @@
 	if ($ad ne 'EXACT_ANS' && $ad ne 'APPROX_ANS') {
 	    my $error;
 	    if ($tag eq 'formularesponse') {
-		$error=&mt('Computer\'s answer is incorrect ("[_1]").');
+		$error=&mt('Computer\'s answer is incorrect ("[_1]").',$response);
 	    } else {
 		# answer failed check if it is sig figs that is failing
 		my ($ad,$msg)=&check_submission($response,$partid,$id,