--- loncom/homework/lonhomework.pm 2003/05/08 15:33:15 1.121 +++ loncom/homework/lonhomework.pm 2003/05/09 22:24:05 1.123 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.121 2003/05/08 15:33:15 albertel Exp $ +# $Id: lonhomework.pm,v 1.123 2003/05/09 22:24:05 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -50,7 +50,7 @@ use Apache::essayresponse(); use Apache::externalresponse(); use Apache::rankresponse(); use Apache::matchresponse(); -use Apache::chemresponse(); +#use Apache::chemresponse(); use Apache::Constants qw(:common); use HTML::Entities(); use Apache::loncommon(); @@ -214,7 +214,8 @@ sub check_access { if ( $tries eq '' ) { $tries = '0'; } if ( $maxtries eq '' ) { $maxtries = '2'; } if ($tries >= $maxtries) { $status = 'CANNOT_ANSWER'; } - if($Apache::lonhomework::history{"resource.$id.solved"}=~/^correct/) { + if($Apache::lonhomework::history{"resource.$id.solved"}=~/^correct/ + && lc($Apache::lonhomework::problemstatus) ne 'no') { $status = 'CANNOT_ANSWER'; } }