]> git.koha-community.org Git - koha.git/commit
Bug 14699: Fix intranet search history issues due to pagination
authorJulian Maurice <julian.maurice@biblibre.com>
Thu, 20 Aug 2015 13:38:59 +0000 (15:38 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 29 Nov 2016 17:43:27 +0000 (17:43 +0000)
commitce87a89374b1016ced5cb15c189fdf6055599f56
tree21f63e6df23890173db8ac0c66da33c111a8272f
parent6f4cbc8dad2b4c78768d38b033aa4dd89c28a7e6
Bug 14699: Fix intranet search history issues due to pagination

DataTables removes hidden rows from the DOM. Because of that, "Select
all", "Clear all" and the form submission don't work correctly
(basically they act only on the currently displayed page).

This patch fixes just that.

Test plan:
1/ Go to your search history page
2/ Make you sure you have at least 21 entries in your search history. If
not, do some searches and come back here.
3/ Click "Select all" and change page. The checkboxes on the new page
should be checked.
4/ Check some checkboxes on this new page and click "Clear all". Go back
to the previous page, checkboxes shouldn't be checked.
5/ Check some checkboxes on at least 2 different pages and click
"Delete". All selected search history entries should be deleted.

Followed test plan. Works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/search-history.tt