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

raeburn raeburn at source.lon-capa.org
Wed May 6 11:01:16 EDT 2020


raeburn		Wed May  6 15:01:16 2020 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  - "Grading tabs" only in course context. 
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.764 loncom/homework/grades.pm:1.765
--- loncom/homework/grades.pm:1.764	Wed May  6 00:09:49 2020
+++ loncom/homework/grades.pm	Wed May  6 15:01:15 2020
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.764 2020/05/06 00:09:49 raeburn Exp $
+# $Id: grades.pm,v 1.765 2020/05/06 15:01:15 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -10707,7 +10707,9 @@
         unshift(@$crumbs,{href=>&href_symb_cmd($symb,'gradingmenu'),text=>"Grading"});
         $args{'bread_crumbs'} = $crumbs;
         $r->print(&Apache::loncommon::start_page('Grading',$js,\%args));
-        &Apache::lonquickgrades::startGradeScreen($r,($env{'form.symb'}?'probgrading':'grading'));
+        if ($env{'request.course.id'}) {
+            &Apache::lonquickgrades::startGradeScreen($r,($env{'form.symb'}?'probgrading':'grading'));
+        }
     }
     unless ($nodisplayflag) {
         $r->print(&Apache::lonhtmlcommon::resource_info_box($symb,$onlyfolderflag,$stuvcurrent,$stuvdisp));
@@ -10938,7 +10940,7 @@
     }
     if ($env{'form.inhibitmenu'}) {
         $request->print(&Apache::loncommon::end_page());
-    } else {
+    } elsif ($env{'request.course.id'}) {
         &Apache::lonquickgrades::endGradeScreen($request);
     }
     &reset_caches();




More information about the LON-CAPA-cvs mailing list