--- loncom/homework/lonhomework.pm 2006/02/16 01:24:39 1.235 +++ loncom/homework/lonhomework.pm 2006/02/26 20:01:17 1.236 @@ -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 @@ sub check_slot_access { &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 ) {