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

banghart lon-capa-cvs@mail.lon-capa.org
Tue, 21 Dec 2004 22:46:27 -0000


banghart		Tue Dec 21 17:46:27 2004 EDT

  Modified files:              
    /loncom/homework	essayresponse.pm 
  Log:
  	Unlock files when changing response.
  
  
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.56 loncom/homework/essayresponse.pm:1.57
--- loncom/homework/essayresponse.pm:1.56	Thu Dec 16 16:21:35 2004
+++ loncom/homework/essayresponse.pm	Tue Dec 21 17:46:27 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.56 2004/12/16 21:21:35 banghart Exp $
+# $Id: essayresponse.pm,v 1.57 2004/12/21 22:46:27 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -150,6 +150,8 @@
                     &Apache::lonnet::clear_selected_files($name);
                     $uploadedflag=1;
     	        } else {
+		    my ($dsymb,$crsid,$domain,$name)=&Apache::lonxml::whichuser();
+    	            &Apache::lonnet::unmark_as_readonly($domain,$name,$dsymb.$crsid);
     	            $Apache::lonhomework::results{"resource.$part.$id.portfiles"}="";
     	        }
 		$Apache::lonhomework::results{"resource.$part.$id.submission"}=$response;