MDL-38821 enrol_cohort: Fixing setType missing calls
authorDavid Monllao <davidm@moodle.com>
Tue, 2 Apr 2013 07:37:00 +0000 (15:37 +0800)
committerDavid Monllao <davidm@moodle.com>
Tue, 2 Apr 2013 07:37:00 +0000 (15:37 +0800)
enrol/cohort/edit_form.php

index 006e79c..7f3011f 100644 (file)
@@ -47,6 +47,7 @@ class enrol_cohort_edit_form extends moodleform {
         $mform->addElement('header','general', get_string('pluginname', 'enrol_cohort'));
 
         $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'));