diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index 4dae25332afad..b45d03204ee8f 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -7046,14 +7046,13 @@ public function add_grade_form_elements(MoodleQuickForm $mform, stdClass $data, if (!empty($CFG->enableoutcomes)) { foreach ($gradinginfo->outcomes as $index => $outcome) { $options = make_grades_menu(-$outcome->scaleid); + $options[0] = get_string('nooutcome', 'grades'); if ($outcome->grades[$userid]->locked) { - $options[0] = get_string('nooutcome', 'grades'); $mform->addElement('static', 'outcome_' . $index . '[' . $userid . ']', $outcome->name . ':', $options[$outcome->grades[$userid]->grade]); } else { - $options[''] = get_string('nooutcome', 'grades'); $attributes = array('id' => 'menuoutcome_' . $index ); $mform->addElement('select', 'outcome_' . $index . '[' . $userid . ']',