From 36d8b80300fca429ca14a9b890f59d949cc1bcf2 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 1 Aug 2023 15:57:18 +0200 Subject: [PATCH] Don't "inherit" free_busy flag from the iTip invitation --- plugins/calendar/calendar.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index c2230a48..dcd4c98b 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -3441,6 +3441,11 @@ $("#rcmfd_new_category").keypress(function(event) { $existing = null; } + // Use only free_busy values that make sense in this context (T853612) + if (!in_array($event['free_busy'] ?? '', ['free', 'busy'])) { + unset($event['free_busy']); + } + $event_attendee = null; $update_attendees = [];