Bug 15760: Fix order by direction for shelves
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 11 Feb 2016 11:32:43 +0000 (11:32 +0000)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 12 Feb 2016 08:35:40 +0000 (09:35 +0100)
commitdc227112c835d7b5e581da44dfaedccbaf6a1203
tree64b38dfec488ee4b192f9005bc34211e67f57f13
parentba754a4395bcde9bb19bcb12726aef6c45798f74
Bug 15760: Fix order by direction for shelves

The order_by parameters should not be "$direction $order_by" with
quote_names enabled. The correct syntax is { -$direction => $order_by }

Test plan for Opac + Staff interfces:
Sort list by title or whatever and change the direction

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
(cherry picked from commit 71d4942c30f30fdbdf89a93f59e89a4f28e0dd3f)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Koha/Virtualshelves.pm
opac/opac-shelves.pl
virtualshelves/shelves.pl