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

(-)a/Koha/REST/Plugin/Query.pm (-5 / +5 lines)
Lines 79-89 Generates the DBIC order_by attributes based on I<$params>, and merges into I<$a Link Here
79
            my ( $c, $args ) = @_;
79
            my ( $c, $args ) = @_;
80
            my $attributes = $args->{attributes};
80
            my $attributes = $args->{attributes};
81
81
82
            my @order_by =
82
            if ( defined $args->{params}->{_order_by} ) {
83
              map { _build_order_atom($_) }
83
                my @order_by = map { _build_order_atom($_) }
84
              split( /\|/, $args->{params}->{_order_by} );
84
                                split( /\|/, $args->{params}->{_order_by} );
85
                $attributes->{order_by} = \@order_by;
86
            }
85
87
86
            $attributes->{order_by} = \@order_by;
87
            return $attributes;
88
            return $attributes;
88
        }
89
        }
89
    );
90
    );
90
- 

Return to bug 19370