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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 19 Sep 2005 20:41:02 -0000


albertel		Mon Sep 19 16:41:02 2005 EDT

  Modified files:              
    /loncom/homework	essayresponse.pm 
  Log:
  - brwsed uploads to essay repsonses  aren't comma seperated
  
  
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.67 loncom/homework/essayresponse.pm:1.68
--- loncom/homework/essayresponse.pm:1.67	Fri May 20 14:53:53 2005
+++ loncom/homework/essayresponse.pm	Mon Sep 19 16:41:01 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.67 2005/05/20 18:53:53 albertel Exp $
+# $Id: essayresponse.pm,v 1.68 2005/09/19 20:41:01 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -164,7 +164,12 @@
     if ($files =~ /[^\s]/) {
 	$files =~s/,$//;
 	$Apache::lonhomework::results{"resource.$part.$id.$which"}=$files;
-	my @submitted_files = split(/,/,$files);
+	
+	my @submitted_files = ($files);
+	if ( $which eq 'portfiles' ) {
+	    @submitted_files = split(/,/,$files);
+	}
+
 	my $uploadedfiletypes= &Apache::lonnet::EXT("resource.$part".'_'."$id.uploadedfiletypes");
 	if ($uploadedfiletypes) {
 	    $uploadedfiletypes=~s/[^\w\,]//g;