Fix category search when category ID is sent as an array in (addressbook advanced search)

This commit is contained in:
Nathan Gray 2010-06-28 12:36:10 +00:00
parent 5b9a4cb7e9
commit ff7601188f

View File

@ -246,6 +246,12 @@ class addressbook_sql extends so_sql_cf
$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
if (($cats = $filter['cat_id']))
{