mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 10:09:10 +01:00
Calendar: Set new ID to fix missing links to CF fields on new events
This commit is contained in:
parent
db4d0295b8
commit
0eaae8e5f1
@ -1584,7 +1584,11 @@ class calendar_boupdate extends calendar_bo
|
|||||||
|
|
||||||
// Update history
|
// Update history
|
||||||
$tracking = new calendar_tracking($this);
|
$tracking = new calendar_tracking($this);
|
||||||
if (empty($event['id']) && !empty($cal_id)) $event['id'] = $cal_id;
|
if(empty($event['id']) && !empty($cal_id))
|
||||||
|
{
|
||||||
|
$event['id'] = $cal_id;
|
||||||
|
$save_event['id'] = $cal_id;
|
||||||
|
}
|
||||||
// we run all dates through date2ts, to adjust to server-time and the possible date-formats
|
// we run all dates through date2ts, to adjust to server-time and the possible date-formats
|
||||||
// This is done here to avoid damaging the actual event when saving, but the old event is in server-time
|
// This is done here to avoid damaging the actual event when saving, but the old event is in server-time
|
||||||
foreach ($timestamps as $ts)
|
foreach ($timestamps as $ts)
|
||||||
@ -1592,7 +1596,7 @@ class calendar_boupdate extends calendar_bo
|
|||||||
// we convert here from user-time to timestamps in server-time!
|
// we convert here from user-time to timestamps in server-time!
|
||||||
if (isset($save_event[$ts])) $save_event[$ts] = $save_event[$ts] ? calendar_bo::date2ts($save_event[$ts], true) : 0;
|
if (isset($save_event[$ts])) $save_event[$ts] = $save_event[$ts] ? calendar_bo::date2ts($save_event[$ts], true) : 0;
|
||||||
}
|
}
|
||||||
foreach(['start','end','recur_enddate'] as $ts)
|
foreach(['start', 'end', 'recur_enddate'] as $ts)
|
||||||
{
|
{
|
||||||
if(is_object($save_event[$ts]))
|
if(is_object($save_event[$ts]))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user