From d60ee78a5f854deb63a1a5a21b0bd8308a487044 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Thu, 4 Apr 2013 17:17:37 +0800 Subject: [PATCH] MDL-38883 calendar: fix missing setType Also remove duplicate sesskey definition (this is done by formslib internally) --- calendar/managesubscriptions_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/managesubscriptions_form.php b/calendar/managesubscriptions_form.php index a969fbd4595..769a5b5408c 100644 --- 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')); } -- 2.43.0