From 3ab1502f794e614f656b09cb6f61cec388cd2daa Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 5 Mar 2013 12:46:45 -0500 Subject: [PATCH] Bug 9458 - Add sorting to lists - QA Followup 3 Signed-off-by: Jared Camins-Esakov (cherry picked from commit 1ac83c05949582846171089f77eff220d61915d2) Solved Conflicts: C4/VirtualShelves/Page.pm Signed-off-by: Bernardo Gonzalez Kriegel (cherry picked from commit 1ac83c05949582846171089f77eff220d61915d2) --- 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 33b6fc14d1..828306bb5a 100644 --- a/C4/VirtualShelves/Page.pm +++ b/C4/VirtualShelves/Page.pm @@ -258,7 +258,7 @@ sub shelfpage { if ( $sortfield eq 'year' ) { $yearsort = 'year'; } - $sortfield = $query->param('sort') || $sortfield || 'title'; ## Passed in sorting overrides default sorting + $sortfield = $query->param('sort') || $sortfield; ## Passed in sorting overrides default sorting my $direction = $query->param('direction') || 'asc'; $template->param( sort => $sortfield, -- 2.39.5