From cfa157c1e554e0cd113a6fb9fd3af9fbad4529ef Mon Sep 17 00:00:00 2001 From: Pavel Vomacka Date: Jul 19 2017 07:26:40 +0000 Subject: WebUI: change validator of page size settings Previously, this configuration field was validated by integer_validator which only checks that the input is number. Now new positive_integer_validator can also check that the inputed number positive. https://pagure.io/freeipa/issue/6980 Reviewed-By: Felipe Volpone --- diff --git a/install/ui/src/freeipa/Application_controller.js b/install/ui/src/freeipa/Application_controller.js index 5eb4e7a..51f579e 100644 --- a/install/ui/src/freeipa/Application_controller.js +++ b/install/ui/src/freeipa/Application_controller.js @@ -312,7 +312,7 @@ define([ $type: 'text', name: 'pagination_size', label: '@i18n:customization.table_pagination', - validators: ['integer'] + validators: ['positive_integer'] } ] });