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: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
51bdab13ee
commit
487c9701a4
|
|
@ -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") &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue