mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Enabled paging on self-service permissions and delegations.
Paging has been enabled on self-service permissions and delegations list pages. The search facet's get_pkeys() has been fixed to handle non-array value. New test data files have been added as well. Ticket #2092
This commit is contained in:
committed by
Martin Kosek
parent
7f6c9ac04c
commit
7529a79f4b
@@ -162,8 +162,11 @@ IPA.search_facet = function(spec) {
|
||||
var pkeys = [];
|
||||
for (var i=0; i<result.length; i++) {
|
||||
var record = result[i];
|
||||
var values = record[pkey_name];
|
||||
pkeys.push(values[0]);
|
||||
var value = record[pkey_name];
|
||||
if (value instanceof Array) {
|
||||
value = value[0];
|
||||
}
|
||||
pkeys.push(value);
|
||||
}
|
||||
return pkeys;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user