View | Details | Raw Unified | Return to bug 17526
Collapse All | Expand All

(-)a/opac/opac-shelves.pl (-2 / +1 lines)
Lines 225-231 if ( $op eq 'view' ) { Link Here
225
    if ( $shelf ) {
225
    if ( $shelf ) {
226
        if ( $shelf->can_be_viewed( $loggedinuser ) ) {
226
        if ( $shelf->can_be_viewed( $loggedinuser ) ) {
227
            $category = $shelf->category;
227
            $category = $shelf->category;
228
            my $sortfield = $query->param('sortfield') || $shelf->sortfield;    # Passed in sorting overrides default sorting
228
            my $sortfield = $query->param('sortfield') || $shelf->sortfield || 'title';    # Passed in sorting overrides default sorting
229
            my $direction = $query->param('direction') || 'asc';
229
            my $direction = $query->param('direction') || 'asc';
230
            $direction = 'asc' if $direction ne 'asc' and $direction ne 'desc';
230
            $direction = 'asc' if $direction ne 'asc' and $direction ne 'desc';
231
            my ( $page, $rows );
231
            my ( $page, $rows );
232
- 

Return to bug 17526