[LON-CAPA-cvs] cvs: loncom /homework essayresponse.pm
banghart
lon-capa-cvs@mail.lon-capa.org
Sun, 21 Nov 2004 19:18:44 -0000
banghart Sun Nov 21 14:18:44 2004 EDT
Modified files:
/loncom/homework essayresponse.pm
Log:
remove trailing comma on list of submitted portfolio files
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.48 loncom/homework/essayresponse.pm:1.49
--- loncom/homework/essayresponse.pm:1.48 Tue Nov 16 15:14:09 2004
+++ loncom/homework/essayresponse.pm Sun Nov 21 14:18:43 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# essay (ungraded) style responses
#
-# $Id: essayresponse.pm,v 1.48 2004/11/16 20:14:09 banghart Exp $
+# $Id: essayresponse.pm,v 1.49 2004/11/21 19:18:43 banghart Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -140,6 +140,8 @@
}
}
if ($portfiles =~ /[^\s]/) {
+ $portfiles =~ /(.*)(,$)/;
+ $portfiles = $1;
$Apache::lonhomework::results{"resource.$part.$id.portfiles"}=$portfiles;
$Apache::lonhomework::results{"resource.$part.$id.uploadedurl"}=$portfiles;
my @submitted_files = split /,/,$portfiles;