mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
revert pointless putting calendar tracking in on-shutdown (calendar does not use it for notification)
This commit is contained in:
parent
1f066dee26
commit
b7c4cbd5b1
@ -1496,8 +1496,6 @@ class calendar_boupdate extends calendar_bo
|
|||||||
|
|
||||||
// Update history
|
// Update history
|
||||||
$tracking = new calendar_tracking($this);
|
$tracking = new calendar_tracking($this);
|
||||||
Api\Egw::on_shutdown(function() use ($tracking, $event, $cal_id, $timestamps, $save_event, $old_event)
|
|
||||||
{
|
|
||||||
if (empty($event['id']) && !empty($cal_id)) $event['id'] = $cal_id;
|
if (empty($event['id']) && !empty($cal_id)) $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
|
||||||
@ -1507,7 +1505,6 @@ class calendar_boupdate extends calendar_bo
|
|||||||
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;
|
||||||
}
|
}
|
||||||
$tracking->track($save_event, $old_event);
|
$tracking->track($save_event, $old_event);
|
||||||
});
|
|
||||||
|
|
||||||
return $cal_id;
|
return $cal_id;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user