From ed15e8a8a8727e6c933e033bcc41ecacf4d673f4 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Wed, 5 Jun 2013 16:16:49 +0800 Subject: [PATCH] MDL-39940 tags: missing setType call --- tag/edit_form.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tag/edit_form.php b/tag/edit_form.php index 9c62a4a6d05..576c08928aa 100644 --- a/tag/edit_form.php +++ b/tag/edit_form.php @@ -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 +}