MDL-39140 mod_folder: Fix missing call to setType()
authorStephen Bourget <sbourget@goffstown.k12.nh.us>
Mon, 15 Apr 2013 21:59:25 +0000 (17:59 -0400)
committerStephen Bourget <sbourget@goffstown.k12.nh.us>
Mon, 15 Apr 2013 21:59:25 +0000 (17:59 -0400)
mod/folder/edit_form.php

index 85f9ca5..309ae9f 100644 (file)
@@ -36,6 +36,7 @@ class mod_folder_edit_form extends moodleform {
         $options = $this->_customdata['options'];
 
         $mform->addElement('hidden', 'id', $data->id);
+        $mform->setType('id', PARAM_INT);
         $mform->addElement('filemanager', 'files_filemanager', get_string('files'), null, $options);
         $submit_string = get_string('savechanges');
         $this->add_action_buttons(true, $submit_string);