set columns to search for phoneSearch for non-SQL backends too

This commit is contained in:
Ralf Becker 2021-03-21 12:56:59 +01:00
parent fc50aa6312
commit b79971a1e9

View File

@ -2869,6 +2869,10 @@ class Contacts extends Contacts\Storage
$pattern = $backend->search2criteria($pattern, $wildcard, $op, null,
(array)$fields_to_search, false);
}
else
{
$filter['cols_to_search'] = $fields_to_search;
}
$rows = parent::search($pattern, $only_keys, $order_by, $extra_cols, $wildcard, $empty, $op, $start, $filter, $join, $ignore_acl) ?: [];
foreach($rows as $key => $row)
{