[Koha-bugs] [Bug 17001] filtering overdue report by due date can fail if TimeFormat is 12hr
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Aug 6 21:00:11 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17001
Jason Robb <jrobb at sekls.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #53814|0 |1
is obsolete| |
--- Comment #2 from Jason Robb <jrobb at sekls.org> ---
Created attachment 54077
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54077&action=edit
Bug 17001: fix due date filter on the overdue report
When the TimeFormat system preference is set to "12 hour",
setting a filter on the due date can result in:
- no overdue loans being reported, even if there are some
that meet the criteria
OR
- overdue loans being omitted from the report if they
are due on the "until" date in the filter
This patch fixes this by replacing output_pref() with
DateTime::Format::MySQL to format the date filter values
to pass to the SQL query.
To test
-------
[1] Run the overdue report (circ/overdue.pl) and set a filter
on due date, using values that should bring up one or
more overdue loans.
[2] Note that zero overdue loans are returned (if using MySQL
5.5, 5.6, or 5.7 or MariaDB 5) or that loans due on the
"until" date are omitted (if using MarioDB 10).
[3] Apply the patch and repeat step 1. This time, the correct
set of overdue loans should be reported.
Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
Signed-off-by: Your Name <jrobb at sekls.org>
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list