[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm
raeburn
raeburn@source.lon-capa.org
Mon, 30 Mar 2009 04:49:36 -0000
raeburn Mon Mar 30 04:49:36 2009 EDT
Modified files:
/loncom/homework lonhomework.pm
Log:
- Make return from &check_slot_access() consistent with information available in Navigate Contents and Manage Reservations, for .problem which uses slots, for which previously checked-in slot has closed, but problem remains answerable (should a new slot become available).
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.308 loncom/homework/lonhomework.pm:1.309
--- loncom/homework/lonhomework.pm:1.308 Thu Mar 26 18:21:24 2009
+++ loncom/homework/lonhomework.pm Mon Mar 30 04:49:35 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.308 2009/03/26 18:21:24 bisitz Exp $
+# $Id: lonhomework.pm,v 1.309 2009/03/30 04:49:35 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -297,12 +297,15 @@
return ('WAITING_FOR_GRADE');
}
- # no slot is currently open, and has been checked in for this version
- # previous slot is therefore CLOSED, so therefore the problem is
+ # Previously used slot is no longer open, and has been checked in for this version.
+ # However, the problem is not closed, and potentially, another slot might be
+ # used to gain access to it to work on it, until the due date is reached, and the
+ # problem then becomes CLOSED. Therefore return the slotstatus -
+ # (which will be NOT_IN_SLOT).
if (!defined($slot_name)
&& $checkedin
&& $type eq 'problem') {
- return ('CLOSED',$datemsg);
+ return ($slotstatus);
}
if ($slotstatus eq 'NOT_IN_A_SLOT'