From 99554d785094dc3ac92b391fa8c78fb01ffb53b6 Mon Sep 17 00:00:00 2001 From: Shahlin Ibrahim Date: Mon, 22 Jun 2020 08:46:21 +0400 Subject: [PATCH 1/2] Trim spaces for integer values in table inputs Signed-off-by: Shahlin Ibrahim --- js/table/change.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/table/change.js b/js/table/change.js index 1cb09b2cbb..5c3b597cd8 100644 --- a/js/table/change.js +++ b/js/table/change.js @@ -155,6 +155,9 @@ function verifyAfterSearchFieldChange (index) { var $thisInput = $('input[name=\'criteriaValues[' + index + ']\']'); // validation for integer type if ($thisInput.data('type') === 'INT') { + // Trim spaces if it's an integer + $thisInput.val($thisInput.val().trim()); + var hasMultiple = $thisInput.prop('multiple'); if (hasMultiple) { $('#tbl_search_form').validate(); From 761fab0f95e75251b5483a781a04596e11ec3625 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Mon, 22 Jun 2020 08:34:23 +0200 Subject: [PATCH 2/2] Add a ChangeLog entry for #16201 Signed-off-by: William Desportes --- ChangeLog | 1 + 1 file changed, 1 insertion(+) diff --git a/ChangeLog b/ChangeLog index c1e00b37e0..5e149615b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -35,6 +35,7 @@ phpMyAdmin - ChangeLog - issue #16184 Remove chdir logic to fix PHP fatal error "Uncaught TypeError: chdir()" - issue Support for Twig 3 - issue Allow phpmyadmin/twig-i18n-extension ^3.0 +- issue #16201 Trim spaces for integer values in table search 5.0.2 (2020-03-20) - issue Fixed deprecation warning "implode(): Passing glue string after array is deprecated." function on export page