mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
* Calendar - Filter birthdays by name to remove duplicates caused by account + contact
This commit is contained in:
parent
c9dcbc0947
commit
228629f93f
@ -1908,7 +1908,12 @@ class calendar_bo
|
||||
{
|
||||
$holidays[$date] = array();
|
||||
}
|
||||
$holidays[$date] = array_merge($holidays[$date], $bdays);
|
||||
foreach($bdays as $birthday)
|
||||
{
|
||||
// Skip if name / date are already there - duplicate contacts
|
||||
if(in_array($birthday['name'], array_column($holidays[$date], 'name'))) continue;
|
||||
$holidays[$date][] = $birthday;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user