Skip to content

Commit

Permalink
Merge branch 'MDL-56882-master' of git://github.com/crazyserver/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Nov 14, 2016
2 parents ea70612 + 0ffe8d2 commit 95bfa52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mod/assign/locallib.php
Expand Up @@ -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 . ']',
Expand Down

0 comments on commit 95bfa52

Please sign in to comment.