MDL-39940 tags: missing setType call
authorDan Poltawski <dan@moodle.com>
Wed, 5 Jun 2013 08:16:49 +0000 (16:16 +0800)
committerDan Poltawski <dan@moodle.com>
Wed, 5 Jun 2013 08:16:49 +0000 (16:16 +0800)
tag/edit_form.php

index 9c62a4a..576c089 100644 (file)
@@ -56,6 +56,7 @@ class tag_edit_form extends moodleform {
         if (has_capability('moodle/tag:manage', $systemcontext)) {
             $mform->addElement('text', 'rawname', get_string('name', 'tag'),
                     'maxlength="'.TAG_MAX_LENGTH.'" size="'.TAG_MAX_LENGTH.'"');
+            $mform->setType('rawname', PARAM_NOTAGS);
         }
 
         $mform->addElement('editor', 'description_editor', get_string('description', 'tag'), null, $this->_customdata['editoroptions']);
@@ -74,4 +75,4 @@ class tag_edit_form extends moodleform {
 
     }
 
-}
\ No newline at end of file
+}