mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-43740 core_grade: Thanks for Robert Russo for the patch. Removed the ability to set manual grade items to grade type "None"
This commit is contained in:
parent
d29fb4ac65
commit
93dbb21841
1 changed files with 4 additions and 4 deletions
|
@ -51,10 +51,10 @@ class edit_item_form extends moodleform {
|
|||
$mform->addHelpButton('idnumber', 'idnumbermod');
|
||||
$mform->setType('idnumber', PARAM_RAW);
|
||||
|
||||
$options = array(GRADE_TYPE_NONE=>get_string('typenone', 'grades'),
|
||||
GRADE_TYPE_VALUE=>get_string('typevalue', 'grades'),
|
||||
GRADE_TYPE_SCALE=>get_string('typescale', 'grades'),
|
||||
GRADE_TYPE_TEXT=>get_string('typetext', 'grades'));
|
||||
// Manual grade items cannot have grade type GRADE_TYPE_NONE.
|
||||
$options = array(GRADE_TYPE_VALUE => get_string('typevalue', 'grades'),
|
||||
GRADE_TYPE_SCALE => get_string('typescale', 'grades'),
|
||||
GRADE_TYPE_TEXT => get_string('typetext', 'grades'));
|
||||
|
||||
$mform->addElement('select', 'gradetype', get_string('gradetype', 'grades'), $options);
|
||||
$mform->addHelpButton('gradetype', 'gradetype', 'grades');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue