From ffef0c0027f81e5420445c33b4f14dfebea9a5b5 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 28 Mar 2019 15:57:13 +0000 Subject: [PATCH] Bug 18235: (follow-up) fix tests and remove trailing space Signed-off-by: Nick Clemens --- Koha/SearchEngine/Elasticsearch.pm | 2 +- t/db_dependent/Koha_Elasticsearch.t | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm index 81b1a8dea5..bb730d290c 100644 --- a/Koha/SearchEngine/Elasticsearch.pm +++ b/Koha/SearchEngine/Elasticsearch.pm @@ -285,7 +285,7 @@ sub reset_elasticsearch_mappings { my $field_label = $data->{label}; my $mappings = $data->{mappings}; my $facet_order = $data->{facet_order}; - my $search_field = Koha::SearchFields->find_or_create({ + my $search_field = Koha::SearchFields->find_or_create({ name => $field_name, label => $field_label, type => $field_type, diff --git a/t/db_dependent/Koha_Elasticsearch.t b/t/db_dependent/Koha_Elasticsearch.t index d96c8ff152..078d55d659 100644 --- a/t/db_dependent/Koha_Elasticsearch.t +++ b/t/db_dependent/Koha_Elasticsearch.t @@ -23,6 +23,7 @@ use t::lib::TestBuilder; use MARC::Record; use Koha::SearchFields; +use Koha::SearchEngine::Elasticsearch; my $schema = Koha::Database->schema; my $builder = t::lib::TestBuilder->new; -- 2.39.5