MDL-38376 mod_assign: Feedback displayed when Grade set to hidden
This commit is contained in:
committed by
Sam Hemelryk
parent
a028ac4aaf
commit
bce7b6d40e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user