From adf1835890f5aba60c587c3e905bbd1e003a417c Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 12 Mar 2018 07:15:12 -0400 Subject: [PATCH] Bug 20369: Analytics search is broken with QueryAutoTruncate set to 'only if * is added' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Test Plan: 1) Enable EasyAnalytics 2) Disable QueryAutoTruncate 3) Create an analytic record, add some host items to it 4) Browser to the analytics tab for the record 5) Click the link in the 'used in' column of the table 6) No search results 7) Apply this patch 8) Reload the page, now you get the analytic record! Signed-off-by: Séverine QUEUNE Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index d92abe9276..172321292d 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1573,7 +1573,7 @@ sub buildQuery { $stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = 0; } # ISBN,ISSN,Standard Number, don't need special treatment - elsif ( $index eq 'nb' || $index eq 'ns' ) { + elsif ( $index eq 'nb' || $index eq 'ns' || $index eq 'hi' ) { ( $stemming, $auto_truncation, $weight_fields, $fuzzy_enabled -- 2.39.5