@@ -, +, @@ - virtualshelves.category = 2 - virtualshelves.sortfield = '' --- opac/opac-shelves.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/opac/opac-shelves.pl +++ a/opac/opac-shelves.pl @@ -225,7 +225,7 @@ if ( $op eq 'view' ) { if ( $shelf ) { if ( $shelf->can_be_viewed( $loggedinuser ) ) { $category = $shelf->category; - my $sortfield = $query->param('sortfield') || $shelf->sortfield; # Passed in sorting overrides default sorting + my $sortfield = $query->param('sortfield') || $shelf->sortfield || 'title'; # Passed in sorting overrides default sorting my $direction = $query->param('direction') || 'asc'; $direction = 'asc' if $direction ne 'asc' and $direction ne 'desc'; my ( $page, $rows ); --