Bug 20385: Don't try to get info for bad authtypecodes
authorNick Clemens <nick@bywatersolutions.com>
Tue, 13 Mar 2018 14:57:47 +0000 (14:57 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 14 May 2018 14:03:07 +0000 (14:03 +0000)
commit924e987ad808525d85122bbd14786ebb1a1f0a47
tree19b7f8bc26c76098b50f6a873806a25db1e837cf
parent082e4e257123d2f192008e531657ebb63adaef21
Bug 20385: Don't try to get info for bad authtypecodes

TO test:
0 - Have a koha with ES enabled and some auth records
1 - backup your db
2 - sudo koha-mysql <<instance>>
3 - UPDATE auth_types SET authtypecode="PERSO_NAMB" WHERE
authtypecode="PERSO_NAME" (or adjust as necessary)
4 - Search for some authorities where a PERSO_NAME record will be
returned
5 - KA_BOOM!
6 - Apply patch
7 - Results are returned, they do not display a code, viewing record you
won't see code

Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/SearchEngine/Elasticsearch/Search.pm