From 8cd7d81fd84039c81e5ad6817033c0ec0430fcf9 Mon Sep 17 00:00:00 2001 From: Adrien Saurat Date: Tue, 4 Sep 2012 13:59:35 +0200 Subject: [PATCH] Bug 8719: Private lists always sorted by title Virtualshelves: The private lists were sorted by title, even when author or date was selected. This patch corrects this behaviour. Signed-off-by: Marc Veron With this patch lists sort as expected. Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- C4/VirtualShelves/Page.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/VirtualShelves/Page.pm b/C4/VirtualShelves/Page.pm index fddcfa4b80..90bb32d511 100644 --- a/C4/VirtualShelves/Page.pm +++ b/C4/VirtualShelves/Page.pm @@ -245,7 +245,7 @@ sub shelfpage { my $authorsort; my $yearsort; my $tag_quantity; - my $sortfield = ( $query->param('sortfield') ? $query->param('sortfield') : 'title' ); + my $sortfield = ( $sorton ? $sorton : 'title' ); if ( $sortfield eq 'author' ) { $authorsort = 'author'; } -- 2.39.5