Bug 9458 - Add sorting to lists - QA Followup 3

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit 1ac83c0594)

Solved Conflicts:
	C4/VirtualShelves/Page.pm

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 1ac83c0594)
This commit is contained in:
Kyle M Hall 2013-03-05 12:46:45 -05:00 committed by Bernardo Gonzalez Kriegel
parent 2d6a24ff67
commit 3ab1502f79
1 changed files with 1 additions and 1 deletions

View File

@ -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,