Bug 27680: Allow traditional multi-params to work
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 12 Feb 2021 19:25:10 +0000 (19:25 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 4 Mar 2021 09:41:48 +0000 (10:41 +0100)
commit30f02bee8a6553cbb2828d607aaae9e7d2b6c9f3
treec154303a6979a6bb59fdde272a12517f7fa75f00
parent5191ed911dbbe81c0a262646b58b9a6b6143acad
Bug 27680: Allow traditional multi-params to work

This patch allows the preceeding test to pass. Strictly, we want a comma
delimited string for our _order_by parameter, but we cannot easily block
a traditional multi-passed parameter.  As such the 'nice' thing to do is
handle it when such a thing is passed as it will pass through validation
regardless.

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 bc23981b46e67a6d9ee91a2065293ac472341bed)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/REST/Plugin/Query.pm