Bugzilla – Attachment 57686 Details for
Bug 17664
Silence non-zebra warnings in t/db_dependent/Search.t
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17664 - Silence non-zebra warnings in t/db_dependent/Search.t
Bug-17664---Silence-non-zebra-warnings-in-tdbdepen.patch (text/plain), 2.13 KB, created by
Mark Tompsett
on 2016-11-21 17:39:50 UTC
(
hide
)
Description:
Bug 17664 - Silence non-zebra warnings in t/db_dependent/Search.t
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2016-11-21 17:39:50 UTC
Size:
2.13 KB
patch
obsolete
>From a95ad4a6494c173b8f627878a6dddba7cb3f22e6 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Mon, 21 Nov 2016 12:08:52 -0500 >Subject: [PATCH] Bug 17664 - Silence non-zebra warnings in > t/db_dependent/Search.t > >TEST PLAN >--------- >0) back up database >1) drop database; create database >2) run web installer >3) prove t/db_dependent/Search.t > -- notice spammy warnings (other than zebra index warnings) >4) apply patch >5) prove t/db_dependent/Search.t > -- notice only zebra index warnings. >6) run qa test tools >--- > Koha/QueryParser/Driver/PQF/query_plan/node.pm | 2 +- > t/db_dependent/Search.t | 2 ++ > 2 files changed, 3 insertions(+), 1 deletion(-) > >diff --git a/Koha/QueryParser/Driver/PQF/query_plan/node.pm b/Koha/QueryParser/Driver/PQF/query_plan/node.pm >index a50347e..353d760 100644 >--- a/Koha/QueryParser/Driver/PQF/query_plan/node.pm >+++ b/Koha/QueryParser/Driver/PQF/query_plan/node.pm >@@ -49,7 +49,7 @@ sub target_syntax { > foreach my $field (@{$self->fields}) { > $fieldobj = $self->plan->QueryParser->bib1_mapping_by_name('field', $self->classname, $field, $server); > $relbump = $self->plan->QueryParser->bib1_mapping_by_name('relevance_bump', $self->classname, $field, $server); >- if ($relbump) { >+ if ($relbump && defined $relbump->{'attr_string'}) { > $fieldobj->{'attr_string'} .= ' ' . $relbump->{'attr_string'}; > } > push @fields, $fieldobj unless (!defined($fieldobj) || ($field eq $self->classname && @{$self->fields} > 1)); >diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t >index f051655..5774f18 100644 >--- a/t/db_dependent/Search.t >+++ b/t/db_dependent/Search.t >@@ -132,6 +132,8 @@ $contextmodule->mock('preference', sub { > return 'holding'; > } elsif ($pref eq 'UNIMARCAuthorsFacetsSeparator') { > return '--'; >+ } elsif ($pref eq 'template') { >+ return 'prog'; > } else { > warn "The syspref $pref was requested but I don't know what to say; this indicates that the test requires updating" > unless $pref =~ m/(XSLT|item|branch|holding|image)/i; >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17664
:
57686
|
66431
|
67027
|
67665