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

(-)a/admin/preferences.pl (-2 / +9 lines)
Lines 271-277 sub SearchPrefs { Link Here
271
271
272
sub matches {
272
sub matches {
273
    my ( $text, $terms ) = @_;
273
    my ( $text, $terms ) = @_;
274
    if ( $text ) { return !grep( { $text !~ /$_/i } @$terms ); }
274
    if ( $text ) {
275
        return !grep(
276
            {
277
                my $re = eval{qr|$_|i};
278
                $re = qr|\Q$_\E| if $@;
279
                $text !~ m|$re|;
280
            } @$terms
281
        )
282
    }
275
}
283
}
276
284
277
my $dbh = C4::Context->dbh;
285
my $dbh = C4::Context->dbh;
278
- 

Return to bug 10131