mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 05:49:03 +01:00
"fixed not working $type=='owngroups' for ldap, eg. used in calendar pref 'Preselected group for entering the planner'"
This commit is contained in:
parent
b70155b43b
commit
b922519935
@ -261,18 +261,15 @@ class accounts
|
||||
$start = $param['start'];
|
||||
unset($param['start']);
|
||||
|
||||
if ($this->config['account_repository'] != 'ldap')
|
||||
if ($this->config['account_repository'] != 'ldap' && is_numeric($param['type']))
|
||||
{
|
||||
if (is_numeric($param['type']))
|
||||
{
|
||||
$group = (int) $param['type'];
|
||||
$param['type'] = 'accounts';
|
||||
}
|
||||
elseif ($param['type'] == 'owngroups')
|
||||
{
|
||||
$group = true;
|
||||
$param['type'] = 'groups';
|
||||
}
|
||||
$group = (int) $param['type'];
|
||||
$param['type'] = 'accounts';
|
||||
}
|
||||
elseif ($param['type'] == 'owngroups')
|
||||
{
|
||||
$group = true;
|
||||
$param['type'] = 'groups';
|
||||
}
|
||||
// call ourself recursive to get (evtl. cached) full search
|
||||
$full_search = $this->search($param);
|
||||
|
Loading…
Reference in New Issue
Block a user