mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +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
4cb30032ba
commit
b470f52e99
@ -268,18 +268,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