Koha-clms/Koha/REST/V1
Tomas Cohen Arazi 7341637d93 Bug 29464: Make GET /acquisitions/orders honour sorting
When bug 20212 was pushed, we lost (didn't dig enough to find out how)
the sorting feature for this route.

This is mainly because biblio+biblioitems filtering prevents the route
to use plain $c->objects->search, so it has baked a custom version of
it. In this case, it missed the call to the dbic_merge_sorting helper,
that takes care of reading the query parameters and inject the sorting
attributes to the resultset.

To test:
1. Apply the regression tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/acquisitions_orders.t
=> FAIL: Tests fail, sorting doesn't actually work
3. Apply this patch
4. Repeat 2
=> SUCCESS: Sorting works!
5. Test sorting the pending orders on parcel.tt
6. Sign off :-D

Sponsored-by: ByWater Solutions

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2022-02-04 14:21:35 -05:00
..
Acquisitions Bug 29464: Make GET /acquisitions/orders honour sorting 2022-02-04 14:21:35 -05: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-01-21 06:54:36 -05:00
Biblios.pm Bug 29290: Add GET /biblios/:biblio_id/checkouts 2021-10-28 17:32:34 +02: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 24850: Correctly handle suspended_until for PUT 2021-11-03 15:40:52 +01: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 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02: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 29508: Make GET /patrons/:patron_id use Koha::Patrons->search_limited 2022-01-07 06:35:54 -05: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