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)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Thu, 11 Feb 2016 19:42:31 +0000 (19:42 +0000)
commit71d4942c30f30fdbdf89a93f59e89a4f28e0dd3f
tree323f8823a546fcebcb9398a3014f59fae1d4e693
parent16e55c1f3283402f766ed844baa5db333ed2f585
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
Koha/Virtualshelves.pm
opac/opac-shelves.pl
virtualshelves/shelves.pl