mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-38883 calendar: fix missing setType
Also remove duplicate sesskey definition (this is done by formslib internally)
This commit is contained in:
parent
d8201d49d8
commit
d60ee78a5f
@ -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'));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user