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

This commit is contained in:
Amanda Doughty
2013-06-24 10:19:53 +12:00
committed by Sam Hemelryk
parent 2c8e21ac35
commit bf296d3cf3
+3 -3
View File
@@ -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;