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

(-)a/Koha/REST/Plugin/Query.pm (-2 / +1 lines)
Lines 92-98 Generates the DBIC order_by attributes based on I<$params>, and merges into I<$a Link Here
92
92
93
            if ( defined $args->{params}->{_order_by} ) {
93
            if ( defined $args->{params}->{_order_by} ) {
94
                my $order_by = $args->{params}->{_order_by};
94
                my $order_by = $args->{params}->{_order_by};
95
                $order_by = [ split(/,/, $order_by) ] if ( index(',',$order_by) == -1);
95
                $order_by = [ split(/,/, $order_by) ] if ( !reftype($order_by) && index(',',$order_by) == -1);
96
                if ( reftype($order_by) and reftype($order_by) eq 'ARRAY' ) {
96
                if ( reftype($order_by) and reftype($order_by) eq 'ARRAY' ) {
97
                    my @order_by = map { _build_order_atom({ string => $_, result_set => $result_set }) }
97
                    my @order_by = map { _build_order_atom({ string => $_, result_set => $result_set }) }
98
                                @{ $order_by };
98
                                @{ $order_by };
99
- 

Return to bug 27680