[Koha-bugs] [Bug 32559] Support formatted date for column filtering (DT)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 3 18:21:23 CET 2023


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

--- Comment #2 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 144951
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144951&action=edit
Bug 32559: Add support for formatted date when filtering on a column

When dates are displayed formatted (following the dateformat syspref)
in a DataTable table and that there is a filter for the column, we should
filter correctly the data.

Test plan:
Assuming dateformat is set to metric
Go to the main patron search, search for all patrons (don't provide a
search term)
In the "date of birth" column filter, enter "1958", notice that you see
Henry
Search using an iso formatted date 1958-05-30
Search using a metric formatted date 30/05/1958

Note that:
- it's also working for "Expires on" on the same table. We may want to
adjust other tables that are using the DT REST API wrapper and the
column filters
- You need to search for the full formatted date to make it work.
"30/05" won't work.

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


More information about the Koha-bugs mailing list