Koha-clms/Koha/REST/Plugin
Tomas Cohen Arazi 95fda2115d Bug 27680: Add support for param[] syntax
While not that common nowadays, it is the syntax PHP uses, and
DataTables also generates such thing in 'traditional' mode. We should
support it as well.

This patch adds support for that. It does so by adding _order_by[] to
the reserved param names, and proper handling on the dbic_merge_sorting
helper.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/REST/Plugin/Objects.t
=> SUCCESS: Tests pass!
3- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Bug 27680: (QA follow-up) Minor perlcritic issue

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 79064a8863)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2021-03-04 10:41:48 +01:00
..
Exceptions.pm Bug 25493: Make ->unhandled_exception use Koha::Logger 2020-05-19 15:20:43 +01:00
Objects.pm Bug 26143: Make the API handle per_page=-1 2020-08-05 17:36:28 +02:00
Pagination.pm Bug 26143: Make the API handle per_page=-1 2020-08-05 17:36:28 +02:00
PluginRoutes.pm Bug 25504: Use Koha::Logger and display the full stacktrace 2020-08-31 16:10:25 +02:00
Query.pm Bug 27680: Add support for param[] syntax 2021-03-04 10:41:48 +01:00