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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 6 Apr 2023 13:03:15 +0000 (10:03 -0300)
commite23d4d0e6adbd1b2c48fa8c235953b8f642ad032
tree9d415539f967b67bbd0251226e8db876267b87d1
parent69a1c4a53abca3273bf497198348dcc5c406e1ce
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>
koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc