mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Addressbook: Fix advanced search was not including private custom fields when they were on a separate tab
This commit is contained in:
parent
e043153ad4
commit
ee244bf282
@ -3375,10 +3375,20 @@ class addressbook_ui extends addressbook_bo
|
||||
}
|
||||
else
|
||||
{
|
||||
$query['advanced_search'] = array_intersect_key($_content,array_flip(array_merge($this->get_contact_columns(),array('operator','meth_select'))));
|
||||
foreach ($query['advanced_search'] as $key => $value)
|
||||
if($this->config['private_cf_tab'])
|
||||
{
|
||||
if(!$value) unset($query['advanced_search'][$key]);
|
||||
$_content = array_merge($_content, $_content['private_cfs']);
|
||||
}
|
||||
$query['advanced_search'] = array_intersect_key(
|
||||
$_content,
|
||||
array_flip(array_merge($this->get_contact_columns(), array('operator', 'meth_select')))
|
||||
);
|
||||
foreach($query['advanced_search'] as $key => $value)
|
||||
{
|
||||
if(!$value)
|
||||
{
|
||||
unset($query['advanced_search'][$key]);
|
||||
}
|
||||
}
|
||||
// Skip n_fn, it causes problems in sql
|
||||
unset($query['advanced_search']['n_fn']);
|
||||
|
Loading…
Reference in New Issue
Block a user