[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 03:32:57 CEST 2017


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

Aleisha Amohia <aleisha at catalyst.net.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #64834|0                           |1
        is obsolete|                            |

--- Comment #5 from Aleisha Amohia <aleisha at catalyst.net.nz> ---
Created attachment 64836
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=64836&action=edit
[SIGNED-OFF] 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>

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


More information about the Koha-bugs mailing list