--- loncom/homework/response.pm 2020/06/03 18:48:34 1.244.4.1
+++ loncom/homework/response.pm 2018/03/30 23:50:13 1.245
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# various response type definitons response definition
#
-# $Id: response.pm,v 1.244.4.1 2020/06/03 18:48:34 raeburn Exp $
+# $Id: response.pm,v 1.245 2018/03/30 23:50:13 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -265,10 +265,15 @@ sub mandatory_part_meta {
}
sub meta_part_order {
+ my ($type) = @_;
if (@Apache::inputtags::partlist) {
my @parts=@Apache::inputtags::partlist;
- shift(@parts);
+ unless ($type eq 'library') {
+ shift(@parts);
+ }
return ''.join(',',@parts).''."\n";
+ } elsif ($type eq 'library') {
+ return ''."\n";
} else {
return '0'."\n";
}
@@ -1307,7 +1312,7 @@ sub submitted {
return 1;
}
# Submit All button on a .page was pressed
- if ($env{'form.all_submit'}) { return 1; }
+ if (defined($env{'form.all_submit'})) { return 1; }
# otherwise no submission occurred
return 0;
}