MDL-71837 calendar: turn off export form double submit protection.

This commit is contained in:
Paul Holden
2021-06-02 19:53:02 +01:00
parent 2d82188d89
commit 3ed05ecf8c
+3 -1
View File
@@ -138,7 +138,9 @@ $formdata = array(
// If today it's weekend but tomorrow it isn't, do NOT give the "this week" option.
'allowthisweek' => !(($weekend & (1 << $now['wday'])) && !($weekend & (1 << (($now['wday'] + 1) % $numberofdaysinweek))))
);
$exportform = new core_calendar_export_form(null, $formdata);
// Disable submit protection so that the submit buttons continue working after being pressed.
$exportform = new core_calendar_export_form(null, $formdata, 'POST', '', ['data-double-submit-protection' => 'off']);
$calendarurl = '';
if ($data = $exportform->get_data()) {
$params = array();