Koha-clms/t/db_dependent/Koha
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
..
Account Bug 24603: Simplify tests using TestBuilder 2020-11-10 15:00:14 +01:00
Acquisition Bug 26582: (QA follow-up) Rename closed => is_closed 2020-11-05 15:24:20 +01:00
Biblio Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
BiblioUtils Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Cash Bug 26172: (QA follow-up) Add tests for previous cashups 2020-11-05 15:24:20 +01:00
Charges Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Checkouts Bug 27004: Regression tests 2021-01-05 09:34:48 +01:00
Club Bug 27333: Regression tests 2021-01-29 15:37:27 +01:00
Config Bug 27154: Fix test if the cache is populated already 2021-02-12 14:04:32 +01:00
Filter Bug 26250: Fix tests when SearchEngine=Elastic 2020-08-31 16:10:26 +02:00
IssuingRules Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Item Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Library Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Objects/Mixin Bug 23994: Fix random failure from AdditionalFields.t (U18) 2019-11-08 09:31:47 +00:00
Patron Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
Patrons Bug 26059: Add unit tests 2021-02-19 15:46:40 +01:00
Plugins Bug 26470: Regression tests 2020-09-18 10:38:01 +02:00
REST Bug 27680: Add support for param[] syntax 2021-03-04 10:41:48 +01:00
SMTP Bug 26595: Remove password from the smtp_server API object 2020-10-14 15:53:38 +02:00
SearchEngine Bug 26051: We should sort callnumber based on cn-sort 2021-02-25 10:35:24 +01:00
Subscription Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Tags Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Template/Plugin Bug 24665: (QA follow-up) Add tests for 'selected' 2020-11-06 17:30:08 +01:00
XSLT Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Z3950Responder Bug 27149: Unit tests 2021-01-14 17:29:52 +01:00
Account.t Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
ActionLogs.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
ApiKeys.t Bug 26157: Hide expected DBI warnings from tests 2020-08-24 11:19:03 +02:00
Authorities.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
BackgroundJobs.t Bug 27317: (Bug 27127 follow-up) fix t/db_dependent/Koha/BackgroundJobs.t 2020-12-30 16:52:27 +01:00
Biblio.t Bug 27062: Fix pickup_location tests when existing libraries exist 2020-11-20 10:34:54 +01:00
BiblioFrameworks.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Biblios.t Bug 26921: Don't generate an invalid custom cover image if the url cannot be generated 2020-12-28 14:46:25 +01:00
Checkout.t Bug 26327: Add exec flag on .t file 2020-10-14 14:50:07 +02:00
Checkouts.t Bug 23916: (QA follow-up) Adapt all the things to the new column and accessor names 2020-11-10 15:00:14 +01:00
CirculationRules.t Bug 23091: Update unit test 2020-11-06 15:55:17 +01:00
Cities.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
ClassSortRules.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
ClassSources.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
ClassSplitRules.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
CoverImages.t Bug 26145: Add exec flag on .t file 2020-10-12 12:36:27 +02:00
CsvProfiles.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Database.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Desks.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Hold.t Bug 27209: (follow-up) Add ->is_pickup_location_valid 2020-12-28 14:41:08 +01:00
Holds.t Bug 24412: (follow-up) qa-tools 2020-11-06 15:55:17 +01:00
IssuingRules.t Bug 23091: Update unit test 2020-11-06 15:55:17 +01:00
Item.t Bug 27062: Fix pickup_location tests when existing libraries exist 2020-11-20 10:34:54 +01:00
ItemTypes.t Bug 26132: (QA follow-up) Make tests more robust 2020-08-13 10:15:33 +02:00
Items.t Bug 27580: Regression tests 2021-02-05 16:36:12 +01:00
KeyboardShortcuts.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Libraries.t Bug 27071: More tests for Koha::Library->validate_hold_sibling 2021-03-02 08:01:05 +01:00
Library.t Bug 26595: Embed the whole smtp_server object 2020-10-14 15:53:38 +02:00
MarcSubfieldStructures.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
News.t Bug 27714: Prevent Koha::NewsItem->author to explode 2021-02-25 10:38:46 +01:00
Notices.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Object.t Bug 26555: Make sure _messages is always initialized 2020-10-15 14:50:06 +02:00
Objects.t Bug 26984: (follow-up) Don't delete patrons and checkouts in Objects.t 2020-11-20 08:16:02 +01:00
Old.t Bug 26327: Add ->library method to Koha::*Checkout 2020-10-14 14:50:06 +02:00
Patron.t Bug 19382: Adjust comment in test 2020-10-14 14:50:07 +02:00
Patrons.t Bug 23916: (follow-up) Fix unit test 2020-11-10 15:00:14 +01:00
Pseudonymization.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Quotes.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Ratings.t Bug 26250: Fix tests when SearchEngine=Elastic 2020-08-31 16:10:26 +02:00
Reports.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Reviews.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
SMS_Providers.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
SearchField.t Bug 19482: (follow-up) Fix update, add tests, restore closing </td> 2020-11-04 12:59:33 +01:00
SharedContent.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Statistics.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Subscription.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Suggestion.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Suggestions.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Tags.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Z3950Servers.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00