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

(-)a/C4/Koha.pm (-2 / +1 lines)
Lines 1076-1082 sub GetAuthorisedValues { Link Here
1076
    if(@where_strings > 0) {
1076
    if(@where_strings > 0) {
1077
        $query .= " WHERE " . join(" AND ", @where_strings);
1077
        $query .= " WHERE " . join(" AND ", @where_strings);
1078
    }
1078
    }
1079
    $query .= " GROUP BY lib ORDER BY category, lib, lib_opac";
1079
    $query .= " GROUP BY lib ORDER BY category, " . ($opac ? "lib_opac, lib" : "lib, lib_opac");
1080
1080
1081
    my $sth = $dbh->prepare($query);
1081
    my $sth = $dbh->prepare($query);
1082
1082
1083
- 

Return to bug 10656