From e1f69625454fe1c023c0f4571bbb0a15efc15ccf Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 26 Apr 2012 08:54:25 +0200 Subject: [PATCH] Paging disable for password policies Password policies are sorted by priority. When paging is enabled, table facet uses pwpolicy-find --pkey-only to get all pwpolicies keys. Those keys are sorted on server by priority but table facet sorts them again. This breaks the priority sorting. This patch disables the paging in passord policy serch page so the keys are sorted by priority. TODO: we should inspect sorting in table facet more deeply and disable it if it don't break anything. https://fedorahosted.org/freeipa/ticket/2676 --- install/ui/policy.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/ui/policy.js b/install/ui/policy.js index d48cacc49..604664f12 100644 --- a/install/ui/policy.js +++ b/install/ui/policy.js @@ -33,7 +33,9 @@ IPA.pwpolicy.entity = function(spec) { that.entity_init(); that.builder.search_facet({ - columns:['cn','cospriority']}). + pagination: false, + columns:['cn','cospriority'] + }). details_facet({ sections:[ {