[Koha-bugs] [Bug 35788] Remove Koha::Template::Plugin::Biblio::BookingsCount
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jan 15 14:48:01 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35788
--- Comment #4 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 161041
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161041&action=edit
Bug 35788: Simplify code
We should not load DateUtils and deal with DateTime objects and
formatting when we can use the DB for it, using \'NOW()' should be
enough.
This patch makes that change. To test:
1. Apply the previous patches
2. Run:
$ ktd --shell
k$ prove t/db_dependent/Koha/Bookings.t
=> SUCCESS: Tests pass!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list