Bug 22474: Clone field config before adding fields to it
authorEre Maijala <ere.maijala@helsinki.fi>
Thu, 7 Mar 2019 14:35:30 +0000 (16:35 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 25 Apr 2019 14:04:38 +0000 (15:04 +0100)
commit16846985e1032b89bb9df16f445c04f3c47dd375
tree48b7558df7c75eb3b6dc0440eb16871a3e6d1b7a
parent5469ae4eea46416410bddaef4934aa1db6e767f9
Bug 22474: Clone field config before adding fields to it

Test plain:

1. Reindex both authorities and biblios with the -d flag to recreate the index, e.g. "perl misc/search_tools/rebuild_elastic_search.pl -v -d"
2. Check that authorities only contains authority-specific fields in Elasticsearch e.g. by fetching  http://localhost:9200/koha_dev_authorities/_mappings
3. Reindex both without the -d flag and verify it works, e.g. "perl misc/search_tools/rebuild_elastic_search.pl -v"

Signed-off-by: Björn Nylén <bjorn.nylen@ub.lu.se>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 118f685dbf1519077ece65a47f83bff179efbf9b)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Installer/PerlDependencies.pm
Koha/SearchEngine/Elasticsearch.pm