[Koha-bugs] [Bug 29844] Remove uses of wantarray in Koha::Objects

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 2 14:12:52 CET 2022


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

--- Comment #19 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 130099
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=130099&action=edit
Bug 29844: Remove use of wantarray from Koha::Objects

This patch removes the use of `wantarray` from the following methods in
the Koha::Objects class:
- search
- search_related

In both cases, the change is trivial. And the tests get the 'list
context' portion removed as well.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Objects.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Caveat: we broke many things by removing the feature. Check follow-up
patches as well.

Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>

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


More information about the Koha-bugs mailing list