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

(-)a/C4/Search.pm (-4 / +3 lines)
Lines 1531-1540 sub buildQuery { Link Here
1531
        # OR every member of the group
1531
        # OR every member of the group
1532
        elsif ( $this_limit =~ /mc/ ) {
1532
        elsif ( $this_limit =~ /mc/ ) {
1533
            my ($k,$v) = split(/:/, $this_limit,2);
1533
            my ($k,$v) = split(/:/, $this_limit,2);
1534
            if ( $k !~ /mc-i(tem)?type/ ) {
1534
            if ( $k !~ /mc-i(tem)?type/ && $v !~ /[a-zA-Z0-9]/ ) {
1535
                # in case the mc-ccode value has complicating chars like ()'s inside it we wrap in quotes
1535
                # in case the mc-ccode value has complicating chars like ()'s inside it we wrap in quotes
1536
                $this_limit =~ tr/"//d;
1536
                $v =~ tr/"//d;
1537
                $this_limit = $k.":'".$v."'";
1537
                $this_limit = qq{$k:'$v'};
1538
            }
1538
            }
1539
1539
1540
            $group_OR_limits{$k} .= " or " if $group_OR_limits{$k};
1540
            $group_OR_limits{$k} .= " or " if $group_OR_limits{$k};
1541
- 

Return to bug 23086