[Koha-bugs] [Bug 28871] Koha::Objects->empty doesn't work correctly in list context

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 3 12:43:52 CET 2021


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

--- Comment #20 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Tomás Cohen Arazi from comment #19)
> So Koha::Biblio->pickup_locations can honour list context sometimes, and
> sometimes not. With this patch the programmer can be sure ->pickup_locations
> has a predictable behavior and avoid coding for exceptional cases.

That said, removing the use of wantarray entirely (with which I agree after the
debate, and because of the tradeoffs, not for the behavior), would make this
patch unnecessary. But that doesn't look like it is gonna happen soon.

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


More information about the Koha-bugs mailing list