From 8a940f45fcb63d1fa95554f423fa477d0129b2f9 Mon Sep 17 00:00:00 2001 From: Johannes Burk Date: Mon, 12 May 2014 16:45:03 +0200 Subject: [PATCH] fixed Did you remember to call setType() for 'name'? Defaulting to PARAM_RAW cleaning --- edit_form.php | 1 + 1 file changed, 1 insertion(+) diff --git a/edit_form.php b/edit_form.php index bd2a22a..22c5303 100644 --- a/edit_form.php +++ b/edit_form.php @@ -24,6 +24,7 @@ class enrol_self_edit_form extends moodleform { $mform->addElement('header', 'header', get_string('pluginname', 'enrol_apply')); $mform->addElement('text', 'name', get_string('custominstancename', 'enrol')); + $mform->setType('name', PARAM_TEXT); $options = array(ENROL_INSTANCE_ENABLED => get_string('yes'), ENROL_INSTANCE_DISABLED => get_string('no')); $mform->addElement('select', 'status', get_string('status', 'enrol_apply'), $options);