[Koha-bugs] [Bug 12461] Add patron clubs feature

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 8 18:10:56 CEST 2017


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

--- Comment #84 from Kyle M Hall <kyle at bywatersolutions.com> ---
(In reply to Jonathan Druart from comment #83)
> I do not understand the $return_scalar argument you use for
> get_club_enrollments and get_enrollable_clubs. Could you please explain?
> 
> It seems useless, I suggest to remove it.

It is a hack solution to an big issue with template toolkit. Basically, when
calling a method from Template Toolkit that would return a Koha::Objects
derived class, the result will always be returned in list context. I've tried
using the scalar plugin for TT but had no luck.

Even worse, if the list has only 1 element, TT will convert it to just being
that element with no list context. Then, if you try to call a TT list method (
such as 'size' ), it will try to call that method on the object instead and
you'll get an error!

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


More information about the Koha-bugs mailing list