Koha-clms/Koha/REST/Plugin
Tomas Cohen Arazi 474adb247a Bug 24191: Make objects.search pass to_model to dbic_merge_sorting
This patch makes objects.search pass the to_mode method reference so it
can be used to map API attributes to column names when building the
sorting portion of the query.

To test:
1. Apply the regression tests on this patchset
2. Run:
  $ kshell
 k$ prove t/db_dependent/Koha/REST/Plugin/Objects.t
=> FAIL: Tests fail!
3. Apply the rest of the patchset
4. Run:
 k$ prove t/Koha/REST/Plugin/Query.t
=> SUCCESS: Tests pass! changes to the methods work as expected!
5. Run:
 k$ prove t/db_dependent/Koha/REST/Plugin/Objects.t
=> SUCCESS: Tests pass!
6. Sign off :-D

Sponsored-by: ByWater Solutions
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 32ded50691)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 3de45aad29)
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-01-10 10:22:55 +13:00
..
Objects.pm Bug 24191: Make objects.search pass to_model to dbic_merge_sorting 2020-01-10 10:22:55 +13:00
Pagination.pm Bug 19278: Mention RESTdefaultPageSize in POD 2017-12-11 17:46:59 -03:00
PluginRoutes.pm Bug 21116: Add API routes through plugins 2018-09-14 17:21:14 +00:00
Query.pm Bug 24191: Add to_model param to _build_order_atom and dbic_merge_sorting 2020-01-10 10:22:12 +13:00