mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
Calendar - fix empty history logs after drag and drop
This commit is contained in:
parent
9f58a21e06
commit
e70d0ceea4
@ -154,6 +154,14 @@ class calendar_tracking extends Api\Storage\Tracking
|
||||
$old['participants'] = array();
|
||||
$old = array_merge($old, $this->alter_participants($participants));
|
||||
}
|
||||
// Make sure dates are timestamps
|
||||
foreach(array('start','end') as $date)
|
||||
{
|
||||
if(is_object($data[$date]) && is_a($data[$date], 'DateTime'))
|
||||
{
|
||||
$data[$date] = $data[$date]->format('ts');
|
||||
}
|
||||
}
|
||||
parent::track($data,$old,$user,$deleted, $changed_fields);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user