Koha-clms/Koha/REST/Plugin
Tomas Cohen Arazi d90d264253
Bug 33974: (follow-up) _order_by is not always an arrayref
The loop through the `_order_by` query parameter occurences introduced
by this patchset was naive regarding the possible scenarios.

When there's only one parameter passed, it shouldn't be expecting an
arrayref, but a scalar. This patch deals with that in the simplest way.

To test:
1. Run:
   $ ktd --shell
  k$ prove t/db_dependent/Koha/REST/Plugin/Objects.t
=> FAIL: Tests are failing
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests pass!
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-07-06 15:55:06 -03:00
..
Auth Bug 32178: (QA follow-up) Correct modules import 2022-11-18 12:04:32 -03:00
Exceptions.pm Bug 22678: Replace a few unneeded Koha::Logger calls 2022-10-24 14:37:03 -03:00
Objects.pm Bug 33974: (follow-up) _order_by is not always an arrayref 2023-07-06 15:55:06 -03:00
Pagination.pm Bug 33080: Allow pagination to be built from stashed values 2023-03-10 12:04:06 -03:00
PluginRoutes.pm Bug 22678: Replace a few unneeded Koha::Logger calls 2022-10-24 14:37:03 -03:00
Query.pm Bug 33971: Remove x-koha-query header support 2023-07-03 10:35:06 -03:00