https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12461
--- Comment #84 from Kyle M Hall <[email protected]> --- (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. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
