Koha-clms/Koha/REST
Tomas Cohen Arazi a16356ae28
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>
(cherry picked from commit d90d264253)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2023-07-18 07:04:20 +01:00
..
Plugin Bug 33974: (follow-up) _order_by is not always an arrayref 2023-07-18 07:04:20 +01:00
V1 Bug 33974: (QA follow-up) Remove superflous import 2023-07-17 16:25:48 +01:00
V1.pm Bug 31378: (follow-up) catch startup error when missing Oauth provider table 2022-11-08 14:40:10 -03:00