Skip to content

Commit

Permalink
MDL-39720 added missing setType() in moodleform
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed May 20, 2013
1 parent e2637d1 commit d8d442e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions files/coursefilesedit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d8d442e

Please sign in to comment.