mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Fix category search when category ID is sent as an array in (addressbook advanced search)
This commit is contained in:
parent
5b9a4cb7e9
commit
ff7601188f
@ -246,6 +246,12 @@ class addressbook_sql extends so_sql_cf
|
|||||||
|
|
||||||
$owner = isset($filter['owner']) ? $filter['owner'] : (isset($criteria['owner']) ? $criteria['owner'] : null);
|
$owner = isset($filter['owner']) ? $filter['owner'] : (isset($criteria['owner']) ? $criteria['owner'] : null);
|
||||||
|
|
||||||
|
// fix cat_id criteria to search in comma-separated multiple cats and return subcats
|
||||||
|
if (($cats = $criteria['cat_id']))
|
||||||
|
{
|
||||||
|
$criteria += $this->_cat_search($criteria['cat_id'],$not);
|
||||||
|
unset($criteria['cat_id']);
|
||||||
|
}
|
||||||
// fix cat_id filter to search in comma-separated multiple cats and return subcats
|
// fix cat_id filter to search in comma-separated multiple cats and return subcats
|
||||||
if (($cats = $filter['cat_id']))
|
if (($cats = $filter['cat_id']))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user