MDL-39720 added missing setType() in moodleform

This commit is contained in:
Marina Glancy
2013-05-21 09:50:07 +10:00
parent e2637d1da3
commit d8d442e9bf
+1
View 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);
}