]> git.koha-community.org Git - koha.git/commit
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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 2 Apr 2018 21:07:29 +0000 (18:07 -0300)
commit6560a9a706686d4a28d23f15d223bbc88c0b5c50
tree94aa82b4e4183ba99590808051d733ee6375632f
parent08039f41c196f9119e5ca82f762e5260d8c81a1a
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