From 52f959c8acb8665d5c0f14a8493660094d861859 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Mon, 11 Mar 2013 18:35:39 -0400 Subject: [PATCH] [PASSED QA] Bug 9239 QA follow-up: don't fall back to kw if field is specified Signed-off-by: Katrin Fischer --- 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 7d694cd..6e0a605 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); -- 1.7.9.5