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

raeburn raeburn at source.lon-capa.org
Sat Jan 23 15:32:17 EST 2021


raeburn		Sat Jan 23 20:32:17 2021 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  - Accommodate access via "Grade ungraded submissions" link which doesn't
    prompt instructor to select Sections.
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.782 loncom/homework/grades.pm:1.783
--- loncom/homework/grades.pm:1.782	Sat Jan 23 20:24:53 2021
+++ loncom/homework/grades.pm	Sat Jan 23 20:32:17 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.782 2021/01/23 20:24:53 raeburn Exp $
+# $Id: grades.pm,v 1.783 2021/01/23 20:32:17 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1173,6 +1173,8 @@
         my @sections;
         if ($env{'request.course.sec'} ne '') {
             @sections = ($env{'request.course.sec'});
+        } elsif ($env{'form.section'} eq '') {
+            @sections = ('all');
         } else {
             @sections = &Apache::loncommon::get_env_multiple('form.section');
         }




More information about the LON-CAPA-cvs mailing list