Permalink
Browse files

MDL-39720 added missing setType() in moodleform

  • Loading branch information...
1 parent b051261 commit 91af4fa5bfee8971ac3958075b180bd037ffa999 @marinaglancy marinaglancy committed with danpoltawski May 20, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 files/coursefilesedit_form.php
@@ -24,6 +24,7 @@ function definition() {
$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);
}

0 comments on commit 91af4fa

Please sign in to comment.