mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +01:00
read event start and end times if not given from the caller to avoid broken recurrences
This commit is contained in:
parent
793aab00b0
commit
5c29be0ed1
@ -603,6 +603,13 @@ class calendar_bo
|
||||
{
|
||||
$this->debug_message('bocal::set_recurrences(%1,%2)',true,$event,$start);
|
||||
}
|
||||
// check if the caller gave the event start and end times and if not read them from the DB
|
||||
if (!isset($event['start']) || !isset($event['end']))
|
||||
{
|
||||
$event_read=$this->read($event['id']);
|
||||
$event['start'] = $event_read['start'];
|
||||
$event['end'] = $event_read['end'];
|
||||
}
|
||||
// check if the caller gave the participants and if not read them from the DB
|
||||
if (!isset($event['participants']))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user