--- loncom/homework/optionresponse.pm 2005/01/10 19:21:57 1.123 +++ loncom/homework/optionresponse.pm 2005/01/31 22:00:40 1.124 @@ -1,7 +1,7 @@ # LearningOnline Network with CAPA # option list style responses # -# $Id: optionresponse.pm,v 1.123 2005/01/10 19:21:57 albertel Exp $ +# $Id: optionresponse.pm,v 1.124 2005/01/31 22:00:40 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -182,7 +182,7 @@ sub end_foilgroup { my $part_id="$Apache::inputtags::part.$Apache::inputtags::response[-1]"; push (@{ $Apache::lonhomework::analyze{"$part_id.options"} },@opt); } elsif ( $target eq 'grade') { - if ( defined $ENV{'form.submitted'}) { + if ( &Apache::response::submitted()) { my @whichopt = &whichfoils($max,$randomize); my $temp=1;my $name; my %responsehash;