]> git.koha-community.org Git - koha.git/commit
Bug 31331: Add data-order attribute for better sorting of dates
authorLucas Gass <lucas@bywatersolutions.com>
Tue, 9 Aug 2022 14:31:05 +0000 (14:31 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 16 Aug 2022 12:10:00 +0000 (09:10 -0300)
commit883d12913e32075f37b03135abe64e97d691739a
treef7cd1c6551aef208604576c4bf8792e610a5d64a
parent12bc623ae7bcbd03fd4c8505bf1c55010bb3d0f7
Bug 31331: Add data-order attribute for better sorting of dates

To test:
1. I used the following suggestiondates:

MariaDB [koha_kohadev]> select suggesteddate from suggestions;
+---------------+
| suggesteddate |
+---------------+
| 2022-01-03    |
| 2022-08-09    |
| 2022-02-22    |
| 2021-01-21    |
+---------------+

2. Set the dateformat system preference to 'mm/dd/yyyy'.
3. Try sorting the suggestion table by date, ascending and descending,
   it is not right.
4. Apply patch
5. Try sorting by date again, ascending and descending, it should now
   sort correctly.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt