make sure to not set a recur_date for a non-recurring event when setting a status (as recur_date has to be 0, for non-recurring events!)
This commit is contained in:
parent
17077fe581
commit
0d6e885ac3
|
@ -1885,6 +1885,11 @@ class calendar_boupdate extends calendar_bo
|
|||
{
|
||||
return false;
|
||||
}
|
||||
// make sure to not set a recur_date for a non-recurring event (as recur_date has to be 0, for non-recurring events!)
|
||||
if ($recur_date && ($event = $event || $this->read($cal_id, null, $ignore_acl)) && empty($event['recur_type']))
|
||||
{
|
||||
$recur_date = 0;
|
||||
}
|
||||
$quantity = $role = null;
|
||||
calendar_so::split_status($status, $quantity, $role);
|
||||
if ($this->log)
|
||||
|
|
Loading…
Reference in New Issue