mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Calendar: Fix "Object of class EGroupware\Api\DateTime could not be converted to string" error when adding recurrence to an event
This commit is contained in:
parent
bfdce2334f
commit
cc6691ffe2
@ -1570,6 +1570,13 @@ class calendar_boupdate extends calendar_bo
|
||||
// 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;
|
||||
}
|
||||
foreach(['start','end','recur_enddate'] as $ts)
|
||||
{
|
||||
if(is_object($save_event[$ts]))
|
||||
{
|
||||
$save_event[$ts] = $save_event[$ts]->format('ts');
|
||||
}
|
||||
}
|
||||
$tracking->track($save_event, $old_event);
|
||||
|
||||
return $cal_id;
|
||||
|
Loading…
Reference in New Issue
Block a user