[Koha-bugs] [Bug 18870] Patron Clubs breaks when creating a club

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jul 6 09:47:50 CEST 2017


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

--- Comment #6 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 64837
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=64837&action=edit
Bug 18870: Force scalar context for Koha::Club methods

These 2 methods are called from the template in list context.
However since bug 18539 Koha::Objects->find can no longer be called in
list context.
Forcing the context to scalar fixes the problem and should not
introduced side-effects.

Test plan:
- Create a club template
- Create a club using this template
=> Without this patch you should no longer get the following error:
Template process failed: undef error - Cannot use "->find" in list
context at /home/vagrant/kohaclone/Koha/Club.pm line 51.

Signed-off-by: Aleisha Amohia <aleishaamohia at hotmail.com>
Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>

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


More information about the Koha-bugs mailing list