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 <veron@veron.ch>

With this patch lists sort as expected.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Adrien Saurat 2012-09-04 13:59:35 +02:00 committed by Paul Poulain
parent c2e5ae2e66
commit 0acebb8fc6

View file

@ -251,7 +251,7 @@ sub shelfpage {
my $authorsort; my $authorsort;
my $yearsort; my $yearsort;
my $tag_quantity; my $tag_quantity;
my $sortfield = ( $query->param('sortfield') ? $query->param('sortfield') : 'title' ); my $sortfield = ( $sorton ? $sorton : 'title' );
if ( $sortfield eq 'author' ) { if ( $sortfield eq 'author' ) {
$authorsort = 'author'; $authorsort = 'author';
} }