mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
LdapConnection: Fetch attributes required for sorting the results
This commit is contained in:
parent
6ff15acc1b
commit
f956d09597
@ -608,6 +608,12 @@ class LdapConnection implements Selectable
|
||||
'value' => $this->encodeSortRules($query->getOrder())
|
||||
)
|
||||
));
|
||||
} elseif ($query->hasOrder()) {
|
||||
foreach ($query->getOrder() as $rule) {
|
||||
if (! in_array($rule[0], $fields)) {
|
||||
$fields[] = $rule[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$results = @ldap_search(
|
||||
@ -695,6 +701,12 @@ class LdapConnection implements Selectable
|
||||
'value' => $this->encodeSortRules($query->getOrder())
|
||||
)
|
||||
));
|
||||
} elseif ($query->hasOrder()) {
|
||||
foreach ($query->getOrder() as $rule) {
|
||||
if (! in_array($rule[0], $fields)) {
|
||||
$fields[] = $rule[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$count = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user