Koha-clms/Koha/REST/V1
Tomas Cohen Arazi 296e3e618d Bug 30165: (follow-up) Fix GET /acquisitions/orders
This patch fixes the particular use case of the orders route, which has
a slightly modified version of the objects.search helped, embeded in the
controller itself. This controller gets adjusted to the fact q will now
be an array.

Because of the latter, we end up requiring more code duplication
regarding the query fix, so I moved it to an internal sub that gets
reused.

To test:
1. Apply the previous patches
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/*
=> FAIL: It t/db_dependent/api/v1/acquisitions_orders.t fails!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-03-22 10:17:33 -10:00
..
Acquisitions Bug 30165: (follow-up) Fix GET /acquisitions/orders 2022-03-22 10:17:33 -10:00
CashRegisters Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Clubs Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Config/SMTP Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Patrons Bug 29272: (QA follow-up) Category setup overrides syspref 2021-10-28 12:16:37 +02:00
AdvancedEditorMacro.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
ArticleRequests.pm Bug 27947: (QA follow-up) Make parameters a hashref 2021-10-06 10:09:54 +02:00
Auth.pm Bug 29914: Make check_cookie_auth compare the userid 2022-02-02 21:05:29 -10:00
Biblios.pm Bug 30133: Fix pagination in /biblios/:bibio_id/pickup_locations 2022-02-24 14:35:36 -10:00
Checkouts.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
CirculationRules.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Cities.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Holds.pm Bug 29877: Make POST /holds handle maxreserves correctly 2022-03-03 16:11:50 -10:00
Illbackends.pm Bug 22615: Fix perlcritic 2020-03-05 13:03:46 +00:00
Illrequests.pm Bug 29032: Pre-load ILL backends to speed up response 2021-09-21 20:22:56 +02:00
ImportBatchProfiles.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Items.pm Bug 30133: Simplify code 2022-02-24 14:35:36 -10:00
Libraries.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
OAuth.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Patrons.pm Bug 22993: Handle default messaging preferences during patron creation from API 2022-03-08 23:03:34 -10:00
Quotes.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
ReturnClaims.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Stage.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Static.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Suggestions.pm Bug 17314: Implement /suggestions routes 2021-10-28 17:32:34 +02:00
TransferLimits.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00