Permalink
Browse files

MDL-38883 calendar: fix missing setType

Also remove duplicate sesskey definition (this is done by formslib
internally)
  • Loading branch information...
1 parent d8201d4 commit d60ee78a5f854deb63a1a5a21b0bd8308a487044 @danpoltawski danpoltawski committed Apr 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 calendar/managesubscriptions_form.php
@@ -93,7 +93,7 @@ public function definition() {
}
$mform->addElement('hidden', 'course');
- $mform->addElement('hidden', 'sesskey', sesskey());
+ $mform->setType('course', PARAM_INT);
$mform->addElement('submit', 'add', get_string('add'));
}

0 comments on commit d60ee78

Please sign in to comment.