From d1e2714530bfe4e3ab0e4b156397f761e0834c50 Mon Sep 17 00:00:00 2001 From: Cori Lynn Arnold Date: Mon, 15 Oct 2018 19:50:16 +0000 Subject: [PATCH] Bug 18823: Fix regression issues with search Tests: 1) Open advanced cataloging edtior 2) Under settings select 'Import Batches' 3) Create a few import batches, some for searching and some as targets (and some both) 3.a) note that import batches for saving appear on the left side as targets to save 4) Search for a bibliographic record, make changes and apply to an import batch 5) Search for the bibliographic record in the import batch by author, title, isbn 6) Make changes to the import batch records and verify the changes are applied (either through searching again, or through the Staged MARC management page in Tools) --- Koha/MetaSearcher.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/MetaSearcher.pm b/Koha/MetaSearcher.pm index 161f1d5f17..6289318bc7 100644 --- a/Koha/MetaSearcher.pm +++ b/Koha/MetaSearcher.pm @@ -244,7 +244,7 @@ sub _db_query_get_match_conditions { } elsif ( $_batch_db_text_columns->{$index} ) { my $stripped_value = $value; - $stripped_value =~ s/[^\w]//g; + $stripped_value =~ s/[^\w ]//g; $stripped_value =~ s/^ +| +$//g; return $value if ( !$stripped_value ); -- 2.11.0