[Koha-bugs] [Bug 19686] Add to_model and to_api params to objects.search helper

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 16 12:53:54 CET 2018


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

--- Comment #12 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 71744
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71744&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>

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

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


More information about the Koha-bugs mailing list