Bug 29952: Replace obsolete DataTable column filter function
authorOwen Leonard <oleonard@myacpl.org>
Thu, 27 Jan 2022 11:50:28 +0000 (11:50 +0000)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 18 Feb 2022 12:51:57 +0000 (07:51 -0500)
commita8dea1e7027ebcfb051a898dbf5401d284eddcdb
tree2421339aa8e799835614a757f9a1c88b09f1af6e
parent49204945f033a692656a966228a0a308b2f6811a
Bug 29952: Replace obsolete DataTable column filter function

The "Filter paid transactions" link on the Accounting -> Transactions
page is broken because it uses an obsolete DataTables function for
filtering. This patch updates it to use the current syntax, available in
DataTables since version 1.10.

To test, apply the patch and locate a patron in the staff interface who
has multiple fines, some paid.

- View the patron's "Accounting" page and click the "Transactions" tab.
- Click the "Filter paid transactions" link. The table should be
  filtered so that only transactions with an outstanding amount > zero
  are shown.
- The filter link should change to read "Show all transactions."
- Clicking "Show all transactions" should clear the filter.
- Test with one or more columns hidden using the "Columns" control.
  Filtering should still work correctly with columns hidden.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt