From bf296d3cf38fbe186155e3e875ccfa211eda9324 Mon Sep 17 00:00:00 2001 From: Amanda Doughty Date: Fri, 7 Jun 2013 20:06:17 +0100 Subject: [PATCH] MDL-38376 mod_assign: Feedback displayed when Grade set to hidden --- mod/assign/locallib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index 5f3f9e283fe..5b3fdb37e8a 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -2966,9 +2966,9 @@ class assign { } $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;