[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
Wed Mar 22 17:06:09 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33242

--- Comment #11 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Jonathan Druart from comment #10)
> I was going to PQA until I saw bug 33029, which gives us more flexibility.
> Not sure we need both personally.

Yes we looked at that. Kyle, Nick and I concluded that both go fine together.
See description too, saying this:

Compare the 33029 approach
    [% KohaDates.datetime_from_string(checkout.issuedate).add( days => 3) |
$KohaDates %]
with the approch of this report
    [% checkout.issuedate | $KohaDates add_days => 3 %]

The latter notation is definitely shorter and prettier in my use case and does
only need a few lines more.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list