[LON-CAPA-cvs] cvs: loncom(version_1_0_2) /homework matchresponse.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 15 Oct 2003 19:52:53 -0000


albertel		Wed Oct 15 15:52:53 2003 EDT

  Modified files:              (Branch: version_1_0_2)
    /loncom/homework	matchresponse.pm 
  Log:
  - backport 1.27
  
  
Index: loncom/homework/matchresponse.pm
diff -u loncom/homework/matchresponse.pm:1.20.2.1 loncom/homework/matchresponse.pm:1.20.2.2
--- loncom/homework/matchresponse.pm:1.20.2.1	Mon Sep 22 21:52:57 2003
+++ loncom/homework/matchresponse.pm	Wed Oct 15 15:52:53 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Full matching style response
 #
-# $Id: matchresponse.pm,v 1.20.2.1 2003/09/23 01:52:57 albertel Exp $
+# $Id: matchresponse.pm,v 1.20.2.2 2003/10/15 19:52:53 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -295,7 +295,7 @@
 	    %{ $Apache::response::itemgroup{'letter_name_map'} };
     }
     foreach my $name (@whichfoils) {
-	my $response = $ENV{'form.HWVAL_'.$Apache::inputtags::response['-1'].":$temp"};
+	my $response = &Apache::response::getresponse($temp);
 	my $responsename = $letter_name_map{$response};
 	$responsehash{$name}=$responsename;
 	my $value=$Apache::response::foilgroup{$name.'.value'};
@@ -423,7 +423,7 @@
 		    $question.='<br />'.$text."\n";
 		}
 		if ($Apache::lonhomework::type eq 'exam') {
-		    $question.=&Apache::optionresponse::webbubbles(\@used_letters,\@used_letters,$temp);
+		    $question.=&Apache::optionresponse::webbubbles(\@used_letters,\@used_letters,$temp,$last_letter);
 		}
 	    } else {		
 		if ($Apache::lonhomework::type eq 'exam') {