--- loncom/homework/optionresponse.pm 2003/11/04 18:37:40 1.95 +++ loncom/homework/optionresponse.pm 2003/11/15 06:28:02 1.96 @@ -1,7 +1,7 @@ # LearningOnline Network with CAPA # option list style responses # -# $Id: optionresponse.pm,v 1.95 2003/11/04 18:37:40 albertel Exp $ +# $Id: optionresponse.pm,v 1.96 2003/11/15 06:28:02 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -184,8 +184,8 @@ sub end_foilgroup { if ($ENV{'form.submitted'} eq 'scantron') { $response = $opt[$response]; } - $responsehash{$name}=$response; if ( $response =~ /[^\s]/) { + $responsehash{$name}=$response; my $value=$Apache::response::foilgroup{$name.'.value'}; &Apache::lonxml::debug("submitted a $response for $value
\n"); if ($value eq $response) {