MDL-38883 calendar: fix missing setType

Also remove duplicate sesskey definition (this is done by formslib
internally)
This commit is contained in:
Dan Poltawski 2013-04-04 17:17:37 +08:00
parent d8201d49d8
commit d60ee78a5f

View file

@ -93,7 +93,7 @@ class calendar_addsubscription_form extends moodleform {
} }
$mform->addElement('hidden', 'course'); $mform->addElement('hidden', 'course');
$mform->addElement('hidden', 'sesskey', sesskey()); $mform->setType('course', PARAM_INT);
$mform->addElement('submit', 'add', get_string('add')); $mform->addElement('submit', 'add', get_string('add'));
} }