forked from extern/egroupware
search extra account repository for birthdays too
This commit is contained in:
parent
0e4217f37f
commit
8f3d6954e5
@ -1659,7 +1659,16 @@ class calendar_bo
|
|||||||
'n_family' => "!''",
|
'n_family' => "!''",
|
||||||
'bday' => "!''",
|
'bday' => "!''",
|
||||||
);
|
);
|
||||||
$bdays =& $contacts->search('',array('id','n_family','n_given','n_prefix','n_middle','bday'),'contact_bday ASC',$extra_cols='',$wildcard='',$empty=False,$op='AND',$start=false,$filter);
|
$bdays =& $contacts->search('',array('id','n_family','n_given','n_prefix','n_middle','bday'),
|
||||||
|
'contact_bday ASC',$extra_cols='',$wildcard='',$empty=False,$op='AND',$start=false,$filter);
|
||||||
|
// search accounts too, if not stored in contacts repository
|
||||||
|
$extra_accounts_search = $contacts->account_repository == 'ldap' && !is_null($contacts->so_accounts) &&
|
||||||
|
!$GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts'];
|
||||||
|
if ($extra_accounts_search && ($bdays2 =& $contacts->search('',array('id','n_family','n_given','n_prefix','n_middle','bday'),
|
||||||
|
'contact_bday ASC',$extra_cols='',$wildcard='',$empty=False,$op='AND',$start=false,$filter+array('owner' => 0))))
|
||||||
|
{
|
||||||
|
$bdays = !$bdays ? $bdays2 : array_merge($bdays,$bdays2);
|
||||||
|
}
|
||||||
if ($bdays)
|
if ($bdays)
|
||||||
{
|
{
|
||||||
// sort by month and day only
|
// sort by month and day only
|
||||||
|
Loading…
Reference in New Issue
Block a user