Koha-clms/authorities
Janusz Kaczmarek 823360f3b0 Bug 36791: Koha explodes when trying to edit an authority rec. with an invalid authid
When trying to open the authority editor with authid=<invalid_authid>
(e.g. a deleted authid) Koha explodes with a message:
Can't call method "authtypecode" on an undefined value at
/kohadevbox/koha/authorities/authorities.pl line 556

This this because authtypecode method is called on the result of
->find without verifying that it was succesful.

Test plan:
==========
1. Try to edit an auth rec. giving as a authid (in URL) a non-existing
   authid, e.g. in ktd, with standard ktd test data:
   http://your_ktd:8081/cgi-bin/koha/authorities/authorities.pl?authid=100000
   Koha should explode with the message:
   Can't call method "authtypecode" on an undefined value at
   /kohadevbox/koha/authorities/authorities.pl line 556
2. Apply the patch; restart_all.
3. Repeat p. 1.  You should get the 404 error page.

Sponsored-by: Ignatianum University in Cracow
Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 18843cabdb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit b9ba92c153)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2024-05-23 14:15:24 +00:00
..
auth_finder.pl Bug 33803: Remove comment about tab width 2023-06-09 11:22:17 -03:00
authorities-home.pl Bug 33406: (QA follow-up) Adjust tests and tidy 2023-09-17 22:49:50 -10:00
authorities.pl Bug 36791: Koha explodes when trying to edit an authority rec. with an invalid authid 2024-05-23 14:15:24 +00:00
blinddetail-biblio-search.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
detail-biblio-search.pl Bug 17600: Fix GetTagsLabels imports 2021-08-03 14:35:18 +02:00
detail.pl Bug 17600: Fix GetTagsLabels imports 2021-08-03 14:35:18 +02:00
export.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
merge.pl Bug 17600: Add missing imports in authorities/ 2021-08-03 14:55:26 +02:00
merge_ajax.pl Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
ysearch.pl Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00