* Calendar - fix recurring events were left out of merge from list

This commit is contained in:
nathangray 2018-10-25 10:08:46 -06:00
parent e60d061183
commit 78ddd31b71

View File

@ -600,7 +600,8 @@ class calendar_uilist extends calendar_ui
$this->get_rows($query,$events,$readonlys);
foreach($events as $key => $event)
{
if (!in_array($event['id'],$checked) && !in_array($event['id'].':'.$event['recur_date'], $checked)) unset($events[$key]);
$recur_date = Api\DateTime::to($event['recur_date'],'ts');
if (!in_array($event['id'],$checked) && !in_array($event['id'].':'.$recur_date, $checked)) unset($events[$key]);
}
$checked = array_values($events); // Clear keys
}