[Koha-bugs] [Bug 33242] Allow passing things like add_days => 3 to KohaDates filter
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Apr 28 17:43:47 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33242
Kyle M Hall <kyle at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #148264|0 |1
is obsolete| |
Attachment #148265|0 |1
is obsolete| |
--- Comment #15 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 150390
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=150390&action=edit
Bug 33242: Allow passing add_{duration} options to KohaDates
For example, if I want to add a few days to the issuedate in a
TT template, I could do this:
[% checkout.issuedate | $KohaDates add_days => 3 %]
This development allows you to pass add/subtract years, months, weeks,
days, hours, minutes and seconds.
Test plan:
Pick a notice like CHECKOUT.
Add a line like:
[% checkout.date_due | $KohaDates with_hours => 1, add_minutes => 15 %]
Do a checkout. Verify that the notice generated contains a time that
shifted 15 minutes.
Undo your change.
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list