Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-38886 course: missing setType calls when adding a new category

  • Loading branch information...
commit 83e353fae9d6323c50b3a2f524b776098cd767a8 1 parent d8201d4
@danpoltawski danpoltawski authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  course/editcategory_form.php
View
2  course/editcategory_form.php
@@ -35,8 +35,10 @@ function definition() {
$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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.