From 333ff8c73d90e59f14e4ee95b3c414f36837c249 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 16 Jun 2017 06:36:22 -0400 Subject: [PATCH] Bug 16976 - Authorities searches with double quotes gives ZOOM error 20003 [Alternate] I dug into this a little bit, it seems the issue is that we were double processing the query because of an extra call to C4::AuthoritiesMarc::SearchAuthorities I think we can simply remove this call To test: 1 - Perform an authority search for a value that returns results 2 - Wrap it in quotes and search 3 - 'Internal server error' 4 - Apply patch 5 - Search with quotes succeeds https://bugs.koha-community.org/show_bug.cgi?id=16796 Signed-off-by: Lee Jamison Signed-off-by: Tomas Cohen Arazi Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 9c8a04acb05466356fec8e9d6d13183295719c7d) Signed-off-by: Fridolin Somers (cherry picked from commit 39a2f6421e3d0b2c415ad9abc655193357e24328) Signed-off-by: Katrin Fischer --- Koha/SearchEngine/Zebra/QueryBuilder.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/Koha/SearchEngine/Zebra/QueryBuilder.pm b/Koha/SearchEngine/Zebra/QueryBuilder.pm index 0929516e9b..d0e27381e4 100644 --- a/Koha/SearchEngine/Zebra/QueryBuilder.pm +++ b/Koha/SearchEngine/Zebra/QueryBuilder.pm @@ -37,7 +37,6 @@ sub build_query_compat { sub build_authorities_query { shift; - C4::AuthoritiesMarc::SearchAuthorities(@_); return { marclist => $_[0], and_or => $_[1], -- 2.39.2