mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Calendar - fix empty history logs after drag and drop
This commit is contained in:
parent
fd36f854a3
commit
ab2b00cd13
@ -154,6 +154,14 @@ class calendar_tracking extends Api\Storage\Tracking
|
|||||||
$old['participants'] = array();
|
$old['participants'] = array();
|
||||||
$old = array_merge($old, $this->alter_participants($participants));
|
$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);
|
parent::track($data,$old,$user,$deleted, $changed_fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user