Bugzilla – Attachment 72997 Details for
Bug 19581
Elasticsearch - Catmandu split option adds extra null fields to indexes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19581: (follow-up) Fix handling of new and old arrays for auth compat
Bug-19581-follow-up-Fix-handling-of-new-and-old-ar.patch (text/plain), 1.25 KB, created by
Nick Clemens (kidclamp)
on 2018-03-16 09:05:23 UTC
(
hide
)
Description:
Bug 19581: (follow-up) Fix handling of new and old arrays for auth compat
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2018-03-16 09:05:23 UTC
Size:
1.25 KB
patch
obsolete
>From 3e6c56965097f35520bafb06586606f8268e71a9 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 16 Mar 2018 09:03:46 +0000 >Subject: [PATCH] Bug 19581: (follow-up) Fix handling of new and old arrays for > auth compat > >Stolen from bug 20244 >--- > Koha/SearchEngine/Elasticsearch/Search.pm | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/Koha/SearchEngine/Elasticsearch/Search.pm b/Koha/SearchEngine/Elasticsearch/Search.pm >index 4d584f7..459e485 100644 >--- a/Koha/SearchEngine/Elasticsearch/Search.pm >+++ b/Koha/SearchEngine/Elasticsearch/Search.pm >@@ -200,9 +200,9 @@ sub search_auth_compat { > > # I wonder if these should be real values defined in the mapping > # rather than hard-coded conversions. >- # Our results often come through as nested arrays, to fix this >- # requires changes in catmandu. >- my $authid = $record->{ 'Local-number' }[0][0]; >+ # Handle legacy nested arrays indexed with splitting enabled. >+ my $authid = $record->{ 'Local-number' }[0]; >+ $authid = @$authid[0] if (ref $authid eq 'ARRAY'); > $result{authid} = $authid; > > # TODO put all this info into the record at index time so we >-- >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 19581
:
68947
|
68948
|
68949
|
69092
|
69093
|
72745
|
72767
|
72997
|
73864
|
73865
|
73866
|
73867
|
73896