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:
d8201d4
)
MDL-38883 calendar: fix missing setType
author
Dan Poltawski
<dan@moodle.com>
Thu, 4 Apr 2013 09:17:37 +0000
(17:17 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Thu, 4 Apr 2013 09:17:37 +0000
(17:17 +0800)
Also remove duplicate sesskey definition (this is done by formslib
internally)
calendar/managesubscriptions_form.php
patch
|
blob
|
blame
|
history
diff --git
a/calendar/managesubscriptions_form.php
b/calendar/managesubscriptions_form.php
index
a969fbd
..
769a5b5
100644
(file)
--- a/
calendar/managesubscriptions_form.php
+++ b/
calendar/managesubscriptions_form.php
@@
-93,7
+93,7
@@
class calendar_addsubscription_form extends moodleform {
}
$mform->addElement('hidden', 'course');
- $mform->
addElement('hidden', 'sesskey', sesskey()
);
+ $mform->
setType('course', PARAM_INT
);
$mform->addElement('submit', 'add', get_string('add'));
}