c58629
From e37b90a39420cd3e4f5b6e48d83aa331cd52c9da Mon Sep 17 00:00:00 2001
c58629
From: Pavel Vomacka <pvomacka@redhat.com>
c58629
Date: Tue, 11 Jul 2017 10:49:46 +0200
c58629
Subject: [PATCH] WebUI: change validator of page size settings
c58629
c58629
Previously, this configuration field was validated by integer_validator
c58629
which only checks that the input is number.
c58629
Now new positive_integer_validator can also check that
c58629
the inputed number positive.
c58629
c58629
https://pagure.io/freeipa/issue/6980
c58629
c58629
Reviewed-By: Felipe Volpone <felipevolpone@gmail.com>
c58629
Reviewed-By: Felipe Barreto <fbarreto@redhat.com>
c58629
---
c58629
 install/ui/src/freeipa/Application_controller.js | 2 +-
c58629
 1 file changed, 1 insertion(+), 1 deletion(-)
c58629
c58629
diff --git a/install/ui/src/freeipa/Application_controller.js b/install/ui/src/freeipa/Application_controller.js
c58629
index 5eb4e7a5104b780761b9a5179dbfd1501a8d1478..51f579e3cce2c28e8f1d2d231fa10711d0b2498d 100644
c58629
--- a/install/ui/src/freeipa/Application_controller.js
c58629
+++ b/install/ui/src/freeipa/Application_controller.js
c58629
@@ -312,7 +312,7 @@ define([
c58629
                         $type: 'text',
c58629
                         name: 'pagination_size',
c58629
                         label: '@i18n:customization.table_pagination',
c58629
-                        validators: ['integer']
c58629
+                        validators: ['positive_integer']
c58629
                     }
c58629
                 ]
c58629
             });
c58629
-- 
c58629
2.13.6
c58629