Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2637d1
)
MDL-39720 added missing setType() in moodleform
author
Marina Glancy
<marina@moodle.com>
Mon, 20 May 2013 23:50:07 +0000
(09:50 +1000)
committer
Marina Glancy
<marina@moodle.com>
Mon, 20 May 2013 23:50:07 +0000
(09:50 +1000)
files/coursefilesedit_form.php
patch
|
blob
|
blame
|
history
diff --git
a/files/coursefilesedit_form.php
b/files/coursefilesedit_form.php
index
fadd387
..
e1311f0
100644
(file)
--- 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);
}