[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 29 Oct 2002 06:12:32 -0000
albertel Tue Oct 29 01:12:32 2002 EDT
Modified files:
/loncom/homework inputtags.pm
Log:
- fixes BUG#739 (after due date message when trying to submit after all tries used)
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.70 loncom/homework/inputtags.pm:1.71
--- loncom/homework/inputtags.pm:1.70 Mon Oct 28 14:19:19 2002
+++ loncom/homework/inputtags.pm Tue Oct 29 01:12:32 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.70 2002/10/28 19:19:19 sakharuk Exp $
+# $Id: inputtags.pm,v 1.71 2002/10/29 06:12:32 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -308,7 +308,8 @@
sub setgradedata {
my ($award,$id,$previously_used) = @_;
# if the student already has it correct, don't modify the status
- if ($Apache::inputtags::status['-1'] ne 'CAN_ANSWER') {
+ if ($Apache::inputtags::status['-1'] ne 'CAN_ANSWER' &&
+ $Apache::inputtags::status['-1'] ne 'CANNOT_ANSWER') {
$Apache::lonhomework::results{"resource.$id.afterduedate"}=$award;
return '';
} elsif ( $Apache::lonhomework::history{"resource.$id.solved"} !~