Browse Source

Fix: yes/no options in instance status dropdown switched

SABERES_37_STABLE
Johannes Burk 8 years ago
parent
commit
3f7eceab1a
  1. 9
      edit_form.php

9
edit_form.php

@ -38,9 +38,9 @@ class enrol_apply_edit_form extends moodleform {
$mform->addElement('text', 'name', get_string('custominstancename', 'enrol'));
$mform->setType('name', PARAM_TEXT);
$options = array(1 => get_string('yes'),
0 => get_string('no'));
$mform->addElement('select', 'status', get_string('status', 'enrol_apply'), $options);
$mform->addElement('select', 'status', get_string('status', 'enrol_apply'), array(
ENROL_INSTANCE_ENABLED => get_string('yes'),
ENROL_INSTANCE_DISABLED => get_string('no')));
// $mform->addHelpButton('status', 'status', 'enrol_apply');
$mform->setDefault('status', $plugin->get_config('status'));
@ -54,6 +54,9 @@ class enrol_apply_edit_form extends moodleform {
$mform->addElement('textarea', 'customtext1', get_string('editdescription', 'enrol_apply'));
$options = array(1 => get_string('yes'),
0 => get_string('no'));
$mform->addElement('select', 'customint1', get_string('show_standard_user_profile', 'enrol_apply'), $options);
$mform->setDefault('customint1', $plugin->get_config('customint1'));

Loading…
Cancel
Save