--- loncom/homework/matchresponse.pm 2004/01/06 20:16:17 1.32
+++ loncom/homework/matchresponse.pm 2004/02/09 19:38:00 1.33
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Full matching style response
#
-# $Id: matchresponse.pm,v 1.32 2004/01/06 20:16:17 sakharuk Exp $
+# $Id: matchresponse.pm,v 1.33 2004/02/09 19:38:00 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -306,7 +306,7 @@ sub grade_response {
if (!defined($ENV{'form.submitted'})) { return; }
my %responsehash;
my %grade;
- my ($temp,$right,$wrong,$ignored)=(0,0,0,0);
+ my ($temp,$right,$wrong,$ignored)=(1,0,0,0);
my %letter_name_map;
if (defined(%{ $Apache::response::itemgroup{'letter_name_map'} })) {
%letter_name_map=
@@ -320,7 +320,7 @@ sub grade_response {
my $value=$Apache::response::foilgroup{$name.'.value'};
if ( $response =~ /[^\s]/) {
$responsehash{$name}=$responsename;
- &Apache::lonxml::debug("submitted a $response for $value
\n");
+ &Apache::lonxml::debug("submitted a $response($responsename) for $value
\n");
if ($value eq $responsename) {
$grade{$name}='1'; $right++;
} else {