pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0035-WebUI-change-validator-of-page-size-settings.patch

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