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

@ -151,18 +151,15 @@ class ui_acl
$resultList = $accountList; $resultList = $accountList;
} }
if (is_null($groupList) && $users_only==false) if (is_null($groupList) && $users_only==false)
{
$groupList = array();
if ($users_only==false)
{ {
$groupList = $GLOBALS['egw']->accounts->search(array( $groupList = $GLOBALS['egw']->accounts->search(array(
'type' => 'groups', 'type' => 'groups',
'order' => 'account_lid', 'order' => 'account_lid',
)); ));
}
uasort($groupList,array($this,"sortByLid")); 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) foreach ($resultList as $num => $account)
{ {
$selectlist .= '<option value="' . $account['account_id'] . '"'; $selectlist .= '<option value="' . $account['account_id'] . '"';