[LON-CAPA-cvs] cvs: loncom /homework grades.pm
raeburn
raeburn at source.lon-capa.org
Sat Jan 23 15:24:53 EST 2021
raeburn Sat Jan 23 20:24:53 2021 EDT
Modified files:
/loncom/homework grades.pm
Log:
- Be wary of uninitialized package variables in perl modules under mod_perl.
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.781 loncom/homework/grades.pm:1.782
--- loncom/homework/grades.pm:1.781 Tue Jan 5 21:53:44 2021
+++ loncom/homework/grades.pm Sat Jan 23 20:24:53 2021
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.781 2021/01/05 21:53:44 raeburn Exp $
+# $Id: grades.pm,v 1.782 2021/01/23 20:24:53 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -10632,6 +10632,14 @@
(&substatus_options,
'select_form_order' => ['yes','queued','graded','incorrect','all']);
}
+
+ #
+ # PrepareClasslist() needs to be called to avoid getting a sections list
+ # for a different course from the @Sections global in lonstatistics.pm,
+ # populated by an earlier request.
+ #
+ &Apache::lonstatistics::PrepareClasslist();
+
my $result='<div class="LC_columnSection">
<fieldset>
More information about the LON-CAPA-cvs
mailing list