From 31b105ad110579173f78e8a12435bede11f732f5 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Mon, 11 Mar 2013 18:35:39 -0400 Subject: [PATCH] Bug 9239 QA follow-up: don't fall back to kw if field is specified Signed-off-by: Katrin Fischer Signed-off-by: Jared Camins-Esakov --- Koha/QueryParser/Driver/PQF/query_plan/node.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/QueryParser/Driver/PQF/query_plan/node.pm b/Koha/QueryParser/Driver/PQF/query_plan/node.pm index 7d694cd787..6e0a6058bb 100644 --- a/Koha/QueryParser/Driver/PQF/query_plan/node.pm +++ b/Koha/QueryParser/Driver/PQF/query_plan/node.pm @@ -34,7 +34,7 @@ sub target_syntax { if ($relbump) { $fieldobj->{'attr_string'} .= ' ' . $relbump->{'attr_string'}; } - push @fields, $fieldobj unless ($field eq $self->classname && scalar @fields); + push @fields, $fieldobj unless (!defined($fieldobj) || ($field eq $self->classname && scalar @fields)); } } else { $fieldobj = $self->plan->QueryParser->bib1_mapping_by_name('field', $self->classname, $self->classname, $server); -- 2.39.5