mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-56882 assign: Enable revert outcomes to No outcome
This commit is contained in:
parent
0b8e0c374f
commit
0ffe8d2f0c
1 changed files with 1 additions and 2 deletions
|
@ -7046,14 +7046,13 @@ class assign {
|
||||||
if (!empty($CFG->enableoutcomes)) {
|
if (!empty($CFG->enableoutcomes)) {
|
||||||
foreach ($gradinginfo->outcomes as $index => $outcome) {
|
foreach ($gradinginfo->outcomes as $index => $outcome) {
|
||||||
$options = make_grades_menu(-$outcome->scaleid);
|
$options = make_grades_menu(-$outcome->scaleid);
|
||||||
|
$options[0] = get_string('nooutcome', 'grades');
|
||||||
if ($outcome->grades[$userid]->locked) {
|
if ($outcome->grades[$userid]->locked) {
|
||||||
$options[0] = get_string('nooutcome', 'grades');
|
|
||||||
$mform->addElement('static',
|
$mform->addElement('static',
|
||||||
'outcome_' . $index . '[' . $userid . ']',
|
'outcome_' . $index . '[' . $userid . ']',
|
||||||
$outcome->name . ':',
|
$outcome->name . ':',
|
||||||
$options[$outcome->grades[$userid]->grade]);
|
$options[$outcome->grades[$userid]->grade]);
|
||||||
} else {
|
} else {
|
||||||
$options[''] = get_string('nooutcome', 'grades');
|
|
||||||
$attributes = array('id' => 'menuoutcome_' . $index );
|
$attributes = array('id' => 'menuoutcome_' . $index );
|
||||||
$mform->addElement('select',
|
$mform->addElement('select',
|
||||||
'outcome_' . $index . '[' . $userid . ']',
|
'outcome_' . $index . '[' . $userid . ']',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue