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:
ralf 2024-07-08 16:39:40 +02:00
parent 17077fe581
commit 0d6e885ac3

View File

@ -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)