diff --git a/ChangeLog b/ChangeLog index ff83ebd127..9c6e0ff10e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -76,6 +76,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 diff --git a/js/table/change.js b/js/table/change.js index c5be232e4a..21b6a19feb 100644 --- a/js/table/change.js +++ b/js/table/change.js @@ -154,6 +154,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();