Fix infolog subs action in projectmanager

This commit is contained in:
nathangray 2017-02-24 11:41:48 -07:00
parent c69527d875
commit efc3d28210

View File

@ -1499,7 +1499,7 @@ class infolog_bo
$query = array(
'col_filter' => array('info_id' => $args['infolog']),
'subs' => true,
'cols' => 'egw_infolog.info_id,info_type,info_status,info_percent,info_id_parent',
'cols' => 'main.info_id,info_type,info_status,info_percent,info_id_parent',
);
$infos = array();
foreach($this->search($query) as $row)
@ -1517,9 +1517,13 @@ class infolog_bo
$infos[$row['info_id']]['icon'] = 'infolog/'.$icon;
}
}
foreach($this->anzSubs(array_keys($infos)) as $info_id => $subs)
$anzSubs = $this->anzSubs(array_keys($infos));
if($anzSubs && is_array($anzSubs))
{
if ($subs) $infos[$info_id]['class'] .= ' infolog_rowHasSubs';
foreach($anzSubs as $info_id => $subs)
{
if ($subs) $infos[$info_id]['class'] .= ' infolog_rowHasSubs';
}
}
}
return $infos;