mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 23:59:41 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue