From 1f3870af171da8487e195388d864d4b514d7ef86 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 9 Dec 2020 13:43:56 -0700 Subject: [PATCH] * Calendar: Fix quick add 'Save' button would close the whole window, if it had been opened by a different window --- calendar/inc/class.calendar_uiforms.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 1a114edbfa..5736dbacb8 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -1144,7 +1144,11 @@ class calendar_uiforms extends calendar_ui $button == 'save' && $client_updated ? ($content['id'] ? $update_type : 'add') : 'delete' ); } - Framework::window_close(); + // Don't try to close quick add, it's not in a popup + if($content['template'] !== 'calendar.add') + { + Framework::window_close(); + } exit(); } unset($event['no_notifications']);