[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm

albertel lon-capa-cvs@mail.lon-capa.org
Sun, 26 Feb 2006 20:01:17 -0000


albertel		Sun Feb 26 15:01:17 2006 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
  Log:
  - corner case of 'was in a slot and did the task' but 'has not been graded yet' and 'has a current slot' should still result in the 'Waiting for a grade' screen not the proctor checkin screen
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.235 loncom/homework/lonhomework.pm:1.236
--- loncom/homework/lonhomework.pm:1.235	Wed Feb 15 20:24:39 2006
+++ loncom/homework/lonhomework.pm	Sun Feb 26 15:01:17 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.235 2006/02/16 01:24:39 albertel Exp $
+# $Id: lonhomework.pm,v 1.236 2006/02/26 20:01:17 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -315,6 +315,13 @@
     
     &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 
+	&& !$got_grade) {
+	return ('WAITING_FOR_GRADE');
+    }
+
     if ($slotstatus eq 'NOT_IN_A_SLOT' 
 	&& $checkedin ) {