[Koha-bugs] [Bug 27680] API DataTables Wrapper fails for ordering on multi-data-field columns

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 26 19:10:00 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27680

--- Comment #35 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 117393
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=117393&action=edit
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 at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list