mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fix for different format of multiple cats ('1,2' instead of old ',1,2,') in new addressbook
This commit is contained in:
parent
05a3768cbd
commit
c3a9b1c5e8
@ -305,13 +305,11 @@
|
||||
$GLOBALS['egw']->categories = CreateObject('phpgwapi.categories');
|
||||
}
|
||||
$cats = $GLOBALS['egw']->categories->return_all_children((int)$value);
|
||||
$cat_filter = "(cat_id IN ('".implode("','",$cats)."')";
|
||||
foreach($cats as $cat)
|
||||
{
|
||||
$cat_filter .= " OR cat_id LIKE '%,$cat,%'";
|
||||
$cat_filter[] = $this->db->concat("','",cat_id,"','")." LIKE '%,$cat,%'";
|
||||
}
|
||||
$cat_filter .= ')';
|
||||
$filterlist[] = $cat_filter;
|
||||
$filterlist[] = '('.implode(' OR ',$cat_filter).')';
|
||||
}
|
||||
elseif(@is_int($value))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user