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

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Fri, 12 Sep 2008 10:09:18 -0000


raeburn		Fri Sep 12 06:09:18 2008 EDT

  Modified files:              (Branch: version_2_7_X)
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  - Backport 1.232.
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.227 loncom/homework/caparesponse/caparesponse.pm:1.227.2.1
--- loncom/homework/caparesponse/caparesponse.pm:1.227	Sat Jul 26 11:06:43 2008
+++ loncom/homework/caparesponse/caparesponse.pm	Fri Sep 12 06:09:18 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.227 2008/07/26 15:06:43 raeburn Exp $
+# $Id: caparesponse.pm,v 1.227.2.1 2008/09/12 10:09:18 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -464,7 +464,7 @@
 	use Time::HiRes;
 	my $t0 = [Time::HiRes::gettimeofday()];
 	my ($result,@msgs) = 
-	    &Apache::run::run("&caparesponse_check_list()",$safeeval);
+	    &Apache::run::run("&caparesponse_check_list($tag)",$safeeval);
 	&Apache::lonxml::debug("checking $name $result with $response took ".&Time::HiRes::tv_interval($t0));
 	&Apache::lonxml::debug('msgs are '.join(':',@msgs));
 	my ($awards)=split(/:/,$result);
@@ -1177,7 +1177,7 @@
 		    foreach my $name (keys(%answer)) {
 			&Apache::lonxml::debug(" doing $name with ".join(':',@{ $answer{$name}{'answers'} }));
 			${$safeeval->varglob('LONCAPA::CAPAresponse_answer')}=dclone($answer{$name});
-			my ($result, @msgs)=&Apache::run::run("&caparesponse_check_list()",$safeeval);
+			my ($result, @msgs)=&Apache::run::run("&caparesponse_check_list($$tagstack[-1])",$safeeval);
 			&Apache::lonxml::debug('msgs are'.join(':',@msgs));
 			my ($awards)=split(/:/,$result);
 			my (@awards) = split(/,/,$awards);