]> git.koha-community.org Git - koha.git/commit
Bug 31994: DataTable next button does not work when using data in the HTML
authorOlivier Hubert <olivier.hubert@inlibro.com>
Wed, 26 Oct 2022 16:29:20 +0000 (12:29 -0400)
committerJacob O'Mara <jacobomara901@gmail.com>
Sun, 16 Apr 2023 17:47:08 +0000 (18:47 +0100)
commitcc2b0953426b1d8690cca17798d2fab0d4506a8d
treea3fc76a625fe8e706eed3a6af0ce6ccd179d6113
parent1362b0335dabbda1ba96d8f2b1879dd8513a02b6
Bug 31994: DataTable next button does not work when using data in the HTML

This patch resolves the issue that occurs when the next button of a DataTable with data straight from the HTML is clicked.

Test plan:
1. Run the following SQL query on the database:
   DELETE FROM tables_settings WHERE tablename = 'table_item_type';
2. Restart plack / memcached if using.
3. Open itemtypes.pl.
4. If there are fewer than 11 item types, create additional item types until there are more than 10, so that the next button can be used.
5. Click on the next button / link.
6. Notice that nothing happens.
7. Apply the patch.
8. Restart plack / memcached if using.
9. Reload itemtypes.pl.
10. Click on the next button / link.
11. Notice that the next page is displayed.

Signed-off-by: Magnus Enger <magnus@libriotech.no>
I can reproduce the problem on ktd, after a restart_all and a
hard reload of itemtypes.pl. Patch fixes the problem.
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit e23d4d0e6adbd1b2c48fa8c235953b8f642ad032)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc