--- loncom/homework/matchresponse.pm 2003/10/10 16:47:25 1.25 +++ loncom/homework/matchresponse.pm 2003/10/15 19:40:42 1.27 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Full matching style response # -# $Id: matchresponse.pm,v 1.25 2003/10/10 16:47:25 albertel Exp $ +# $Id: matchresponse.pm,v 1.27 2003/10/15 19:40:42 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -294,7 +294,7 @@ sub grade_response { %{ $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'}; @@ -358,7 +358,6 @@ sub displayfoils { \%Apache::response::foilgroup); my $part=$Apache::inputtags::part; my $solved=$Apache::lonhomework::history{"resource.$part.solved"}; - my $status=$Apache::inputtags::status[-1]; my %letter_name_map; if (defined(%{ $Apache::response::itemgroup{'letter_name_map'} })) { %letter_name_map= @@ -422,7 +421,7 @@ sub displayfoils { $question.='
'.$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') {