[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 09 May 2006 19:03:06 -0000
albertel Tue May 9 15:03:06 2006 EDT
Modified files:
/loncom/homework lonhomework.pm
Log:
- got this wrong, need to not be in an active slot for this
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.242 loncom/homework/lonhomework.pm:1.243
--- loncom/homework/lonhomework.pm:1.242 Tue Apr 25 11:32:40 2006
+++ loncom/homework/lonhomework.pm Tue May 9 15:03:02 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.242 2006/04/25 15:32:40 albertel Exp $
+# $Id: lonhomework.pm,v 1.243 2006/05/09 19:03:02 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -304,9 +304,10 @@
&Apache::lonxml::debug(" slot is $slotstatus checkedin ($checkedin) got_grade ($got_grade) is_correct ($is_correct)");
- # has a current checked in recrd, but hasn't got a grade, must be awaiting
- # a grade
- if ($checkedin
+ # no slot is currently open, and has been checked in for this version
+ # but hasn't got a grade, therefore must be awaiting a grade
+ if (!defined($slot_name)
+ && $checkedin
&& !$got_grade) {
return ('WAITING_FOR_GRADE');
}