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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 28 Dec 2006 20:12:55 -0000


albertel		Thu Dec 28 15:12:55 2006 EDT

  Modified files:              
    /loncom/homework	bridgetask.pm 
  Log:
  - prevent submissions of bridgetask answers after slot closes
  
  
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.214 loncom/homework/bridgetask.pm:1.215
--- loncom/homework/bridgetask.pm:1.214	Thu Dec  7 15:44:55 2006
+++ loncom/homework/bridgetask.pm	Thu Dec 28 15:12:54 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: bridgetask.pm,v 1.214 2006/12/07 20:44:55 albertel Exp $
+# $Id: bridgetask.pm,v 1.215 2006/12/28 20:12:54 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1116,7 +1116,8 @@
 	}
 	
 
-	if ($target eq 'grade' && !$env{'form.webgrade'} && !$previous) {
+	if ($target eq 'grade' && !$env{'form.webgrade'} && !$previous
+	    && $status eq 'CAN_ANSWER') {
 	    my $award='SUBMITTED';
 	    &Apache::essayresponse::file_submission("$version.0",'bridgetask',
 						    'portfiles',\$award);