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

(-)a/Koha/QueryParser/Driver/PQF/query_plan/node.pm (-1 lines)
Lines 67-73 sub target_syntax { Link Here
67
            if (ref($atom)) {
67
            if (ref($atom)) {
68
                $atom_content = $atom->target_syntax($server);
68
                $atom_content = $atom->target_syntax($server);
69
                if ($atom_content) {
69
                if ($atom_content) {
70
                    $atom_content =~ s/"/\\"/g;
71
                    $pqf .= ' @or ' x (scalar(@fields) - 1);
70
                    $pqf .= ' @or ' x (scalar(@fields) - 1);
72
                    foreach my $attributes (@fields) {
71
                    foreach my $attributes (@fields) {
73
                        $attributes->{'attr_string'} ||= '';
72
                        $attributes->{'attr_string'} ||= '';
(-)a/Koha/QueryParser/Driver/PQF/query_plan/node/atom.pm (-2 / +4 lines)
Lines 22-28 directly. Link Here
22
sub target_syntax {
22
sub target_syntax {
23
    my ($self, $server) = @_;
23
    my ($self, $server) = @_;
24
24
25
    return ' "' .  $self->content . '" ';
25
    my $content = $self->content;
26
    $content =~ s/"/\\"/g;
27
28
    return ' "' .  $content . '" ';
26
}
29
}
27
30
28
1;
31
1;
29
- 

Return to bug 9239