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

This commit is contained in:
Amanda Doughty
2013-06-24 10:22:34 +12:00
committed by Sam Hemelryk
parent a028ac4aaf
commit bce7b6d40e
+3 -3
View File
@@ -3382,9 +3382,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;