Browse Source

fixed Did you remember to call setType() for 'name'? Defaulting to PARAM_RAW cleaning

develop_fields
Johannes Burk 11 years ago
parent
commit
8a940f45fc
  1. 1
      edit_form.php

1
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);

Loading…
Cancel
Save