Koha-clms/catalogue
Brendan Lawlor fef2a118e2
Bug 42637: Check if biblio exists before checking if it is fast add
This patch reorders code to make sure the biblio record exists before
checking if the framework is a fast add framework.

To test:
1. Go to a non existing biblio record like:
   http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=99999999
2. See a 500 error or in ktd:
   Can't call method "frameworkcode" on an undefined value
3. Apply patch and restart_all
4. Repeat step 1
5. Now you get the nice error message:
   The record you requested does not exist (99999999).

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2026-05-18 16:05:41 -06:00
..
ISBDdetail.pl Bug 37762: Hook to holds preparation: DRY holdfor and searchToOrder 2026-05-08 12:25:42 -06:00
MARCdetail.pl Bug 37762: Hook to holds preparation: DRY holdfor and searchToOrder 2026-05-08 12:25:42 -06:00
detail.pl Bug 42637: Check if biblio exists before checking if it is fast add 2026-05-18 16:05:41 -06:00
export.pl Bug 39485: Fix wide character in print-warn in opac-export 2025-04-23 09:35:13 +02:00
image.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
imageviewer.pl Bug 37762: Hook to holds preparation: DRY holdfor and searchToOrder 2026-05-08 12:25:42 -06:00
issuehistory.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
item-export.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
itemsearch.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
labeledMARCdetail.pl Bug 37762: Hook to holds preparation: DRY holdfor and searchToOrder 2026-05-08 12:25:42 -06:00
moredetail.pl Bug 32773: Add fast cataloging support for multiple frameworks 2026-05-08 16:05:36 -06:00
search-history.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
search.pl Bug 37762: Circulation: Hook to holds 2026-05-08 12:25:43 -06:00
showelastic.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
showmarc.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
stockrotation.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
updateitem.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00