Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit bce7b6d40e6037584ccf5df9cf2afcda5dae2a97 1 parent a028ac4
frogprincess frogprincess authored samhemelryk committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/assign/locallib.php
6 mod/assign/locallib.php
View
@@ -3382,9 +3382,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.