fix for missing groups in acl-account-list for write / cal-read / booking

This commit is contained in:
Klaus Leithoff 2012-01-24 12:20:29 +00:00
parent 77e38999c4
commit ba9c778c68

View File

@ -152,17 +152,14 @@ class ui_acl
}
if (is_null($groupList) && $users_only==false)
{
$groupList = array();
if ($users_only==false)
{
$groupList = $GLOBALS['egw']->accounts->search(array(
'type' => 'groups',
'order' => 'account_lid',
));
}
$groupList = $GLOBALS['egw']->accounts->search(array(
'type' => 'groups',
'order' => 'account_lid',
));
uasort($groupList,array($this,"sortByLid"));
foreach ($groupList as $k => $val) $resultList[$k] = $val;
}
if (count($groupList)>0 && $users_only==false) foreach ($groupList as $k => $val) $resultList[$k] = $val;
foreach ($resultList as $num => $account)
{
$selectlist .= '<option value="' . $account['account_id'] . '"';