mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-38886 course: missing setType calls when adding a new category
This commit is contained in:
parent
d8201d49d8
commit
83e353fae9
1 changed files with 2 additions and 0 deletions
|
@ -35,8 +35,10 @@ class editcategory_form extends moodleform {
|
|||
$mform->addElement('select', 'parent', get_string('parentcategory'), $options);
|
||||
$mform->addElement('text', 'name', get_string('categoryname'), array('size'=>'30'));
|
||||
$mform->addRule('name', get_string('required'), 'required', null);
|
||||
$mform->setType('name', PARAM_TEXT);
|
||||
$mform->addElement('text', 'idnumber', get_string('idnumbercoursecategory'),'maxlength="100" size="10"');
|
||||
$mform->addHelpButton('idnumber', 'idnumbercoursecategory');
|
||||
$mform->setType('idnumber', PARAM_RAW);
|
||||
$mform->addElement('editor', 'description_editor', get_string('description'), null, $editoroptions);
|
||||
$mform->setType('description_editor', PARAM_RAW);
|
||||
if (!empty($CFG->allowcategorythemes)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue