From 2f6e07d240fe7123bbc95ec64f20e8b74310457f Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Wed, 2 Jun 2021 19:50:38 +0100 Subject: [PATCH] MDL-71837 calendar: turn off export form double submit protection. --- calendar/export.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calendar/export.php b/calendar/export.php index 687f9cfbf40..06486278e23 100644 --- a/calendar/export.php +++ b/calendar/export.php @@ -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();