summaryrefslogtreecommitdiffstats
path: root/install/ui/policy.js
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:32:17 +0200
commite1f69625454fe1c023c0f4571bbb0a15efc15ccf (patch)
tree850922e6be6059f2adc98d2e896a77c79d4ed2e2 /install/ui/policy.js
parentc34136b0375aace93ee947cc45a3cbdc64b2e35c (diff)
downloadfreeipa-e1f69625454fe1c023c0f4571bbb0a15efc15ccf.tar.gz
freeipa-e1f69625454fe1c023c0f4571bbb0a15efc15ccf.tar.xz
freeipa-e1f69625454fe1c023c0f4571bbb0a15efc15ccf.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
Diffstat (limited to 'install/ui/policy.js')
-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:[
{