Don't search in binary data fields (T844)
This commit is contained in:
parent
4a959503f8
commit
52a4b6b543
1 changed files with 24 additions and 1 deletions
|
@ -100,6 +100,29 @@ class rcube_kolab_contacts extends rcube_addressbook
|
|||
private $imap_folder = 'INBOX/Contacts';
|
||||
private $action;
|
||||
|
||||
// list of fields used for searching in "All fields" mode
|
||||
private $search_fields = array(
|
||||
'name',
|
||||
'firstname',
|
||||
'surname',
|
||||
'middlename',
|
||||
'prefix',
|
||||
'suffix',
|
||||
'nickname',
|
||||
'jobtitle',
|
||||
'organization',
|
||||
'department',
|
||||
'email',
|
||||
'phone',
|
||||
'address',
|
||||
'profession',
|
||||
'manager',
|
||||
'assistant',
|
||||
'spouse',
|
||||
'children',
|
||||
'notes',
|
||||
);
|
||||
|
||||
|
||||
public function __construct($imap_folder = null)
|
||||
{
|
||||
|
@ -417,7 +440,7 @@ class rcube_kolab_contacts extends rcube_addressbook
|
|||
return $result;
|
||||
}
|
||||
else if ($fields == '*') {
|
||||
$fields = array_keys($this->coltypes);
|
||||
$fields = $this->search_fields;
|
||||
}
|
||||
|
||||
if (!is_array($fields))
|
||||
|
|
Loading…
Add table
Reference in a new issue