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

(-)a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm (-2 / +1 lines)
Lines 491-497 sub _convert_sort_fields { Link Here
491
491
492
    # Convert the fields and orders, drop anything we don't know about.
492
    # Convert the fields and orders, drop anything we don't know about.
493
    grep { $_->{field} } map {
493
    grep { $_->{field} } map {
494
        my ( $f, $d ) = split /_/;
494
        my ( $f, $d ) = /(.+)_(.+)/;
495
        {
495
        {
496
            field     => $sort_field_convert{$f},
496
            field     => $sort_field_convert{$f},
497
            direction => $sort_order_convert{$d}
497
            direction => $sort_order_convert{$d}
498
- 

Return to bug 19564