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

raeburn raeburn@source.lon-capa.org
Mon, 15 Dec 2008 20:00:21 -0000


raeburn		Mon Dec 15 20:00:21 2008 EDT

  Modified files:              
    /loncom/homework	essayresponse.pm 
  Log:
  - Need to add file to @accepted_files if size does not exceed permitted cumulative size.
  - Remove unused $uploadedfiletype assignment.
  
  
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.93 loncom/homework/essayresponse.pm:1.94
--- loncom/homework/essayresponse.pm:1.93	Tue Dec  9 00:23:22 2008
+++ loncom/homework/essayresponse.pm	Mon Dec 15 20:00:21 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.93 2008/12/09 00:23:22 raeburn Exp $
+# $Id: essayresponse.pm,v 1.94 2008/12/15 20:00:21 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -318,12 +318,13 @@
                     if ($which eq 'filename') {
                         &delete_form_items($jspart,$id);
                     }
+                } else {
+                    push(@accepted_files,$file);
                 }
             } else {
                 push(@accepted_files,$file);
             }
         }
-	my $uploadedfiletypes= &Apache::lonnet::EXT("resource.$part".'_'."$id.uploadedfiletypes");
         $Apache::lonhomework::results{"resource.$part.$id.$which"}=join(',',@accepted_files);
         if (($$award eq 'INVALID_FILETYPE') || ($award eq 'EXCESS_FILESIZE')) {
             return;