forked from extern/egroupware
Fix search through customfields in mail compose not working
This commit is contained in:
parent
4532221717
commit
d7c539ca99
@ -3580,8 +3580,8 @@ class mail_compose
|
||||
$search_str = implode(' +', $search); // tell contacts/so_sql to AND search patterns
|
||||
//error_log(__METHOD__.__LINE__.$_searchString);
|
||||
$filter = $showAccounts ? array() : array('account_id' => null);
|
||||
$filter['cols_to_search'] = array('n_prefix','n_given','n_family','org_name','email','email_home');
|
||||
$cols = array('n_fn','n_prefix','n_given','n_family','org_name','email','email_home');
|
||||
$filter['cols_to_search'] = array('n_prefix','n_given','n_family','org_name','email','email_home', 'contact_id');
|
||||
$cols = array('n_fn','n_prefix','n_given','n_family','org_name','email','email_home', 'contact_id');
|
||||
$contacts = $contacts_obj->search($search_str, $cols, 'n_fn', '', '%', false, 'OR', array(0,100), $filter);
|
||||
$cfs_type_email = Api\Storage\Customfields::get_email_cfs('addressbook');
|
||||
// additionally search the accounts, if the contact storage is not the account storage
|
||||
|
Loading…
Reference in New Issue
Block a user