MDL-38821 enrol_cohort: Fixing setType missing calls

This commit is contained in:
David Monllao 2013-04-02 15:37:00 +08:00
parent a5efbe6161
commit 3de603a175

View 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'));