[Koha-bugs] [Bug 32303] DT pagination on system preference search result

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 22 16:35:25 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32303

--- Comment #2 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 144159
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144159&action=edit
Bug 32303: DT pagination on system preference search result

This patch updates the way we retrieve a DataTable's saved state during
initialization. The change is to prevent cases where making a duplicate
call to DataTables() initializes the table again.

To recreate the bug, search system preferences for the term "last."
Scroll down to the "OPAC preferences" section and observe that there are
two filter forms displayed above it.

Apply the patch and perform the same search again. The extra forms
should be gone.

Confirm that DataTables behavior is still the same:

 - Test pages which use the "saveState" option in DataTables.
   - Type text in the table's search field
   - Reload the page. The search field should still have the string you
     entered, and the "Clear filter" button should be active.
     - Administration -> Libraries
     - Acquisitions -> Vendor -> Receive shipments -> Receive orders
     - Circulation -> Overdues

 - Test pages which don't use the "saveState" option, e.g. the checkout
   screen, patron search results, list of saved reports, etc. The
   behavior of the search form and table operations in general should be
   unchanged.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list