Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-38376 mod_assign: Feedback displayed when Grade set to hidden

  • Loading branch information...
commit bf296d3cf38fbe186155e3e875ccfa211eda9324 1 parent 2c8e21a
@frogprincess frogprincess authored samhemelryk committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/assign/locallib.php
View
6 mod/assign/locallib.php
@@ -2966,9 +2966,9 @@ public function view_student_summary($user, $showlinks) {
}
$cangrade = has_capability('mod/assign:grade', $this->get_context());
- // If there is feedback or a visible grade, show the summary.
- if ((!empty($gradebookgrade->grade) && ($cangrade || !$gradebookgrade->hidden)) ||
- !$emptyplugins) {
+ // If there is a visible grade, show the summary.
+ if ((!empty($gradebookgrade->grade) || !$emptyplugins)
+ && ($cangrade || !$gradebookgrade->hidden)) {
$gradefordisplay = null;
$gradeddate = null;
Please sign in to comment.
Something went wrong with that request. Please try again.