From d8d442e9bf4404ec9b31b3ea0239d72f443c1c08 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Tue, 21 May 2013 09:50:07 +1000 Subject: [PATCH] MDL-39720 added missing setType() in moodleform --- files/coursefilesedit_form.php | 1 + 1 file changed, 1 insertion(+) diff --git a/files/coursefilesedit_form.php b/files/coursefilesedit_form.php index fadd387413d..e1311f0e5d1 100644 --- a/files/coursefilesedit_form.php +++ b/files/coursefilesedit_form.php @@ -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); }