Bug 9458 - Add sorting to lists - QA Followup 3
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 5 Mar 2013 17:46:45 +0000 (12:46 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Wed, 13 Mar 2013 13:06:20 +0000 (09:06 -0400)
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/VirtualShelves/Page.pm

index 3dfbe60..f393cb1 100644 (file)
@@ -249,7 +249,7 @@ sub shelfpage {
                 my $items;
                 my $tag_quantity;
                 my $sortfield = ( $sorton ? $sorton : 'title' );
-                $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,