[Koha-bugs] [Bug 19686] objects.search helper needs a to_model param

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 17 18:35:00 CET 2018


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

--- Comment #9 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 70626
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70626&action=edit
Bug 19686: (followup) Add to_api param for completeness

This patch adds (yet) another param to objects.search: a reference
to a to_api function to be applied when processing the search results
for output.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/REST/Plugin/Objects.t
=> SUCCESS: Test count raised, and tests pass!
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

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


More information about the Koha-bugs mailing list