MDL-39720 added missing setType() in moodleform
authorMarina Glancy <marina@moodle.com>
Mon, 20 May 2013 23:50:07 +0000 (09:50 +1000)
committerMarina Glancy <marina@moodle.com>
Mon, 20 May 2013 23:50:07 +0000 (09:50 +1000)
files/coursefilesedit_form.php

index fadd387..e1311f0 100644 (file)
@@ -24,6 +24,7 @@ class coursefiles_edit_form extends moodleform {
         $options = array('subdirs'=>1, 'maxfiles'=>-1, 'accepted_types'=>'*');
         $mform->addElement('filemanager', 'files_filemanager', '', null, $options);
         $mform->addElement('hidden', 'contextid', $this->_customdata['contextid']);
+        $mform->setType('contextid', PARAM_INT);
         $this->set_data($this->_customdata['data']);
         $this->add_action_buttons(true);
     }