--- loncom/homework/grades.pm 2021/01/23 20:24:53 1.782
+++ loncom/homework/grades.pm 2021/06/04 20:09:28 1.785
@@ -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.785 2021/06/04 20:09:28 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1173,6 +1173,8 @@ LISTJAVASCRIPT
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');
}
@@ -1214,7 +1216,7 @@ LISTJAVASCRIPT
''."\n".
''."\n";
if (exists($env{'form.Status'})) {
- $gradeTable .= ''."\n";
+ $gradeTable .= ''."\n";
} else {
$gradeTable .= &Apache::lonhtmlcommon::row_closure()
.&Apache::lonhtmlcommon::row_title(&mt('Student Status'))
@@ -11383,7 +11385,9 @@ sub startpage {
$args{'only_body'} = 1;
$r->print(&Apache::loncommon::start_page("Student's Version",$head_extra,\%args));
} else {
- unshift(@$crumbs,{href=>&href_symb_cmd($symb,'gradingmenu'),text=>"Grading"});
+ if ($env{'request.course.id'}) {
+ unshift(@$crumbs,{href=>&href_symb_cmd($symb,'gradingmenu'),text=>"Grading"});
+ }
$args{'bread_crumbs'} = $crumbs;
$r->print(&Apache::loncommon::start_page('Grading',$head_extra,\%args));
if ($env{'request.course.id'}) {