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

(-)a/C4/Utils/DataTables.pm (-1 / +5 lines)
Lines 100-105 sub dt_build_orderby { Link Here
100
        $i++;
100
        $i++;
101
    }
101
    }
102
102
103
    return unless @orderbys;
104
105
    # Must be "branches.branchname asc", "borrowers.firstname desc", etc.
106
    @orderbys = grep { /^\w+\.\w+\s(asc|desc)$/ } @orderbys;
107
103
    $orderby = " ORDER BY " . join(',', @orderbys) . " " if @orderbys;
108
    $orderby = " ORDER BY " . join(',', @orderbys) . " " if @orderbys;
104
    return $orderby;
109
    return $orderby;
105
}
110
}
106
- 

Return to bug 27715