forked from extern/egroupware
Fix infolog subs action in projectmanager
This commit is contained in:
parent
c69527d875
commit
efc3d28210
@ -1499,7 +1499,7 @@ class infolog_bo
|
|||||||
$query = array(
|
$query = array(
|
||||||
'col_filter' => array('info_id' => $args['infolog']),
|
'col_filter' => array('info_id' => $args['infolog']),
|
||||||
'subs' => true,
|
'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();
|
$infos = array();
|
||||||
foreach($this->search($query) as $row)
|
foreach($this->search($query) as $row)
|
||||||
@ -1517,11 +1517,15 @@ class infolog_bo
|
|||||||
$infos[$row['info_id']]['icon'] = 'infolog/'.$icon;
|
$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))
|
||||||
|
{
|
||||||
|
foreach($anzSubs as $info_id => $subs)
|
||||||
{
|
{
|
||||||
if ($subs) $infos[$info_id]['class'] .= ' infolog_rowHasSubs';
|
if ($subs) $infos[$info_id]['class'] .= ' infolog_rowHasSubs';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $infos;
|
return $infos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user