To recreate: Edit and run some reports and then modify the last edited/run dates to be: 7/24/2017 12:12:12 7/25/2016 12:12:12 7/26/2017 12:12:12 Sort by each column and note they will sort in the order above instead of the expected: 7/25/2016 12:12:12 7/24/2017 12:12:12 7/26/2017 12:12:12
Do we have the same with other dates in data tables as well?
Created attachment 65423 [details] [review] Bug 18985 - SQL reports 'Last edit' and 'Last run' columns sort alphabetically, not chronologically This patch alters the DataTables configuration of the SQL reports list so that date columns are identified via class rather than position. To test, apply the patch and go to Reports -> Use saved. Test the re-ordering of the creation date, last edit, and last run columns. Each should sort correctly based on the date.
(In reply to Marc Véron from comment #1) > Do we have the same with other dates in data tables as well? Virtual shelves results (lists) have a 'Date added' column that is not sortable.
Created attachment 65500 [details] [review] Bug 18985 - SQL reports 'Last edit' and 'Last run' columns sort alphabetically, not chronologically This patch alters the DataTables configuration of the SQL reports list so that date columns are identified via class rather than position. To test, apply the patch and go to Reports -> Use saved. Test the re-ordering of the creation date, last edit, and last run columns. Each should sort correctly based on the date. Signed-off-by: Marc Véron <veron@veron.ch>
Created attachment 65849 [details] [review] Bug 18985 - SQL reports 'Last edit' and 'Last run' columns sort alphabetically, not chronologically This patch alters the DataTables configuration of the SQL reports list so that date columns are identified via class rather than position. To test, apply the patch and go to Reports -> Use saved. Test the re-ordering of the creation date, last edit, and last run columns. Each should sort correctly based on the date. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Pushed to master for 17.11, thanks to everybody involved!
Pushed to 17.05.x, will be in 17.05.05.
There is no 'Last Run' in 16.11.x as this is a 17.05 feature. Also no 'Last edit'.