mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-48235 mod_assign: Fix grade of 0 not showing on feedback page in oracle
This commit is contained in:
parent
344b4b9846
commit
3a5581c1ad
@ -3974,7 +3974,7 @@ class assign {
|
||||
|
||||
$cangrade = has_capability('mod/assign:grade', $this->get_context());
|
||||
// If there is a visible grade, show the summary.
|
||||
if ((!empty($gradebookgrade->grade) || !$emptyplugins)
|
||||
if ((!is_null($gradebookgrade->grade) || !$emptyplugins)
|
||||
&& ($cangrade || !$gradebookgrade->hidden)) {
|
||||
|
||||
$gradefordisplay = null;
|
||||
@ -3983,7 +3983,7 @@ class assign {
|
||||
$gradingmanager = get_grading_manager($this->get_context(), 'mod_assign', 'submissions');
|
||||
|
||||
// Only show the grade if it is not hidden in gradebook.
|
||||
if (!empty($gradebookgrade->grade) && ($cangrade || !$gradebookgrade->hidden)) {
|
||||
if (!is_null($gradebookgrade->grade) && ($cangrade || !$gradebookgrade->hidden)) {
|
||||
if ($controller = $gradingmanager->get_active_controller()) {
|
||||
$menu = make_grades_menu($this->get_instance()->grade);
|
||||
$controller->set_grade_range($menu, $this->get_instance()->grade > 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user