]> git.koha-community.org Git - koha.git/commit
Bug 14918: Remove C4::Dates from circ/pendingreserves.pl
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 1 Oct 2015 09:08:56 +0000 (10:08 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Oct 2015 13:13:16 +0000 (10:13 -0300)
commitc43e10f06ea35ae17a6efcb24efc4280804cb682
tree943e235b72632efb2ed7bae3e7224f279aab41fb
parentb02619928b2db9434ac0caa2c1dd49024ee1832d
Bug 14918: Remove C4::Dates from circ/pendingreserves.pl

This patch uses Koha::DateUtils instead of C4::Dates and Date::Calc. It
also sent DateTime objects to the template, which use the TT plugin to
display them.
If an invalid dates is entered, the default date is picked.

Test plan:
1/ Go to Home > Circulation > Holds to pull
2/ Verify that the the filter and the list behave as before
3/ Enter invalid dates and confirm that you do not get a software error

Counter patch works as expected and is a much cleaner solution.
Signed-off-by: Marc Veron <veron@veron.ch>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
circ/pendingreserves.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt