* Calendar: Fix quick add 'Save' button would close the whole window, if it had been opened by a different window

This commit is contained in:
nathangray 2020-12-09 13:43:56 -07:00
parent 4472c050d6
commit 1f3870af17

View File

@ -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']);