From e45b6471e747cb4344b6b0354c56cfeb676a1bc7 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 14 Oct 2015 15:21:22 +0000 Subject: [PATCH] Fix duration changed to end date after you click apply. --- calendar/inc/class.calendar_uiforms.inc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 77561de5cc..7ddb47afae 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -730,7 +730,7 @@ class calendar_uiforms extends calendar_ui { $event['end'] = $event['start'] + $event['end'] - $actual_date; } - //echo "

".__LINE__.": event[start]=$event[start]=".egw_time::to($event['start']).", duration=$content[duration], event[end]=$event[end]=".egw_time::to($event['end']).", offset=$offset

\n"; + //error_log(__LINE__.": event[start]=$event[start]=".egw_time::to($event['start']).", duration=$content[duration], event[end]=$event[end]=".egw_time::to($event['end']).", offset=$offset\n"); $event['participants'] = $old_event['participants']; foreach ($old_event['recur_exception'] as $key => $exdate) { @@ -919,8 +919,10 @@ class calendar_uiforms extends calendar_ui // For new events, make sure we have the whole event, not just form data $event = $this->bo->read($event['id']); } - $this->to_client($event); - $response->call('egw.dataStoreUID','calendar::'.$event['id'],$event); + // Copy, so as to not change things for subsequent processing + $converted = $event; + $this->to_client($converted); + $response->call('egw.dataStoreUID','calendar::'.$converted['id'],$converted); } $msg = $message . ($msg ? ', ' . $msg : '');