]> git.koha-community.org Git - koha.git/commit
Bug 18731: Use the stashed koha.embed in objects.search
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 6 Jan 2020 16:00:26 +0000 (13:00 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 9 Jan 2020 16:25:53 +0000 (16:25 +0000)
commit021f5c95d7d0b9bff8eb703abc6fb65a656bd3de
tree9f56a254a9fb83f47064d6a7858e13698d430c66
parent5d8ae2e6c8fd6f0de86f13ed444aec6fe69d9147
Bug 18731: Use the stashed koha.embed in objects.search

This patch makes the objects.search helper use the koha.embed structure
that is embedded in the authenticate_api_request step.

This way, any controller using it will benefit from automatic embed
handling.

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

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/Plugin/Objects.pm
t/db_dependent/Koha/REST/Plugin/Objects.t