MDL-55425 user: allow to update another user editor pref

This commit is contained in:
Marina Glancy 2016-08-05 09:36:00 +08:00
parent 7752762674
commit e91b3e8282
2 changed files with 5 additions and 1 deletions

View file

@ -45,6 +45,10 @@ class user_edit_editor_form extends moodleform {
$mform = $this->_form;
$editors = editors_get_enabled();
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT);
if (count($editors) > 1) {
$choices = array('' => get_string('defaulteditor'));
$firsteditor = '';