Skip to content

Commit

Permalink
MDL-39140 mod_folder: Fix missing call to setType()
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourget committed Apr 15, 2013
1 parent b3661ab commit 01b3704
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/folder/edit_form.php
Expand Up @@ -36,6 +36,7 @@ function definition() {
$options = $this->_customdata['options']; $options = $this->_customdata['options'];


$mform->addElement('hidden', 'id', $data->id); $mform->addElement('hidden', 'id', $data->id);
$mform->setType('id', PARAM_INT);
$mform->addElement('filemanager', 'files_filemanager', get_string('files'), null, $options); $mform->addElement('filemanager', 'files_filemanager', get_string('files'), null, $options);
$submit_string = get_string('savechanges'); $submit_string = get_string('savechanges');
$this->add_action_buttons(true, $submit_string); $this->add_action_buttons(true, $submit_string);
Expand Down

0 comments on commit 01b3704

Please sign in to comment.