mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 14:28:45 +01:00
* Admin: limiting a huge list of accounts returned not all accounts, because full search was limited too original number of requested rows
This commit is contained in:
parent
7a9dcaa2e9
commit
83745e0e5f
@ -252,10 +252,13 @@ class accounts
|
||||
unset($param['app']);
|
||||
$start = $param['start'];
|
||||
unset($param['start']);
|
||||
$offset = $param['offset'] ? $param['offset'] : $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs'];
|
||||
unset($param['offset']);
|
||||
$stop = $start + $offset;
|
||||
|
||||
if ($this->config['account_repository'] != 'ldap' && is_numeric($param['type']))
|
||||
{
|
||||
$members = $this->members($param['type'],true);
|
||||
$members = $this->members($group=$param['type'],true);
|
||||
$param['type'] = 'accounts';
|
||||
}
|
||||
elseif ($param['type'] == 'owngroups')
|
||||
@ -289,9 +292,7 @@ class accounts
|
||||
if (!$members) $members = array();
|
||||
$valid = !$app ? $members : array_intersect($valid,$members); // use the intersection
|
||||
}
|
||||
//echo "<p>limiting result to app='$app' and/or group=$group valid-ids=".print_r($valid,true)."</p>\n";
|
||||
$offset = $param['offset'] ? $param['offset'] : $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs'];
|
||||
$stop = $start + $offset;
|
||||
//error_log(__METHOD__."() limiting result to app='$app' and/or group=$group valid-ids=".array2string($valid));
|
||||
$n = 0;
|
||||
$account_search[$serial]['data'] = array();
|
||||
foreach ($full_search as $id => $data)
|
||||
|
Loading…
Reference in New Issue
Block a user