]> git.koha-community.org Git - koha.git/commit
Bug 26664: Fix sorting for date last seen in inventory tool
authorKatrin Fischer <katrin.fischer.83@web.de>
Mon, 5 Oct 2020 17:48:45 +0000 (17:48 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 Nov 2020 11:59:32 +0000 (12:59 +0100)
commit9adafd6404cfdc3f1fc52445e32d8f8b121ccc4e
tree0bd0800383d1e03818ea1891583c3ae194591e39
parentc7938f5f86ca4d54e230af415ecae87eda38a324
Bug 26664: Fix sorting for date last seen in inventory tool

This adds the standard datatable sorting for dates to the inventory
table as described here:
https://wiki.koha-community.org/wiki/DataTables_HowTo#Sorting_dates_regardless_of_date_format_preference

To test:
- Go to the inventory tool
- Search for a big sample list of items with different date last seen
- Sort the table now by "date last seen" by clicking on the table header cell
- Try different settings of the DateFormat system preferences
- Verify sorting is incorrect (alphabetic, not by date)
- Apply patch
- Repeat testing and very all is sorting correctly now

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt