From 2c31029f664d7046d144ee486f97553c7070c21e Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 15 Jan 2016 21:11:19 +0000 Subject: [PATCH] Fix early ajax update losing not yet saved partially entered events --- calendar/inc/class.calendar_uiforms.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index a3df3ed441..8658c4a9ad 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -1009,7 +1009,7 @@ class calendar_uiforms extends calendar_ui } // New event, send data before updating so it's there $response = egw_json_response::get(); - if($response && !$content['id']) + if($response && !$content['id'] && $event['id']) { // Directly update stored data. // Make sure we have the whole event, not just form data