--- loncom/homework/essayresponse.pm 2004/12/21 22:46:27 1.57 +++ loncom/homework/essayresponse.pm 2005/01/31 22:00:40 1.58 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # essay (ungraded) style responses # -# $Id: essayresponse.pm,v 1.57 2004/12/21 22:46:27 banghart Exp $ +# $Id: essayresponse.pm,v 1.58 2005/01/31 22:00:40 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -108,10 +108,9 @@ sub end_essayresponse { $Apache::lonhomework::results{"resource.$part.$id.collaborators"}=$collaborators if ($collaborators ne $previous_list); } - if ( defined($ENV{'form.submitted'}) && - $ENV{'form.submitted'} eq 'scantron' ) { + if ( &Apache::response::submitted('scantron') ) { $increment=&Apache::response::scored_response($part,$id); - } elsif ( defined($ENV{'form.submitted'}) ) { + } elsif ( &Apache::response::submitted() ) { my $response = $ENV{'form.HWVAL_'.$id}; my $filename= $ENV{'form.HWFILE'.$part.'_'.$id.'.filename'}; my $portfiles = $ENV{'form.HWPORT'.$part.'_'.$id};