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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 03 Jul 2006 02:52:21 -0000


albertel		Sun Jul  2 22:52:21 2006 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - checkin- unproctored self checkin of .problems
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.359 loncom/homework/structuretags.pm:1.360
--- loncom/homework/structuretags.pm:1.359	Mon Jun 26 18:33:22 2006
+++ loncom/homework/structuretags.pm	Sun Jul  2 22:52:20 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.359 2006/06/26 22:33:22 albertel Exp $
+# $Id: structuretags.pm,v 1.360 2006/07/03 02:52:20 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -736,6 +736,13 @@
 							'problem');
 	    }
 	} elsif ($target eq 'web') {
+	    if ($status eq 'CAN_ANSWER' 
+		&& $slot_name ne ''
+		&& $Apache::lonhomework::history{'resource.0.checkedin'} eq '') {
+		# unproctored slot access, self checkin
+		&Apache::bridgetask::check_in('problem',undef,undef,
+					      $slot_name);
+	    }
 	    $result.="\n $form_tag_start".	
 	      '<input type="hidden" name="submitted" value="yes" />';
 	    # create a page header and exit