Bug 42666: Parse kohaTable pageLength setting to int

Test plan :
01 - Clear your browser's local storage
02 - Go to Administration > Item types
03- You need to have more than 10 item types, add some if needed
04 - Observe "Showing 1 to 010 of XX" on top of the table
05 - Click on "next" button at the bottom of the table
06 - Nothing happens
07 - Go to Administration > Patron categories
08 - You need to have more than 20 patron categories, add some if needed
09 - Observe "Showing 1 to 020 of XX" on top of the table
10 - Click on "next" button at the bottom of the table
11 - Nothing happens
12 - Apply patch
13 - Clear your browser's local storage
14 - Repeat 2-5 and 7-10, observe that the leading 0 is gone, and that the
"next" button works

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Chris Mathevet 2026-05-25 08:54:59 -04:00 committed by Lucas Gass
parent 1fc43a783c
commit 63611e5b58
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -1497,7 +1497,7 @@ function update_search_description(
table_settings["default_display_length"] != null
) {
settings["pageLength"] =
table_settings["default_display_length"];
parseInt(table_settings["default_display_length"], 10);
}
if (
table_settings.hasOwnProperty("default_sort_order") &&