"fixed not working multiple infolog view in addressbook (was broken after the link updates)"

This commit is contained in:
Ralf Becker 2008-03-31 14:39:41 +00:00
parent 46d63cc311
commit 8c58d4c3f1

View File

@ -652,9 +652,10 @@ class soinfolog // DB-Layer
$action_id = ( strpos($query['action_id'],',')!==false) ? explode(',',$query['action_id']) : $query['action_id']; $action_id = ( strpos($query['action_id'],',')!==false) ? explode(',',$query['action_id']) : $query['action_id'];
if ($action != '') if ($action != '')
{ {
$links = egw_link::get_links($action=='sp'?'infolog':$action,$action_id,'infolog'); $links = solink::get_links($action=='sp'?'infolog':$action,$action_id,'infolog');
if (count($links)) if (count($links))
{ {
$links = call_user_func_array('array_merge',$links); // flatten the array
$link_extra = ($action == 'sp' ? 'OR' : 'AND')." main.info_id IN (".implode(',',$links).')'; $link_extra = ($action == 'sp' ? 'OR' : 'AND')." main.info_id IN (".implode(',',$links).')';
} }
} }