summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-04-26 08:54:25 +0200
committerMartin Kosek <mkosek@redhat.com>2012-04-26 14:35:56 +0200
commit71f4b2be541863e7e462867c550e0f4fa6ba2642 (patch)
treef780d000961e7db19305cb160f79d91f6fccb3d7
parenta79b4cea94403eee74afd5e773be1ce6b48e29fc (diff)
downloadfreeipa-71f4b2be541863e7e462867c550e0f4fa6ba2642.tar.gz
freeipa-71f4b2be541863e7e462867c550e0f4fa6ba2642.tar.xz
freeipa-71f4b2be541863e7e462867c550e0f4fa6ba2642.zip
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
-rw-r--r--install/ui/policy.js4
1 files changed, 3 insertions, 1 deletions
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:[
{