[Koha-bugs] [Bug 19966] Add ability to pass objects directly to slips and notices

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 31 10:54:38 CET 2022


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

--- Comment #19 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
(In reply to Marcel de Rooy from comment #12)
> I dont want to disappoint you but the whole discussion on bug 28883 will
> have a bearing on this one too.
> The point is that TT calls methods in list context. Which is what you dont
> want when chaining. So e.g. object.filterbyX.count does not even work when
> filter returns a list while in perl would return an iterator here.
> 
> And specific to this bug, how would a 'power user' editing a notice know
> that difference?

I would argue that this bug has no change of effect here.. whilst we don't
allow passing objects through from the GetPreperaredLetter call yet, we DO
already pass objects into the actual template parser from within
GetPreparedLetter.. pass tables etc and you get given objects back.

As such, I think we can safely push this and defer the decision/challenge of
context as it's a pre-existing issue.

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


More information about the Koha-bugs mailing list