Bug 36438 - MARCdetail: Can't call method "metadata" on an undefined value
Summary: MARCdetail: Can't call method "metadata" on an undefined value
Status: Pushed to oldstable
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Marcel de Rooy
QA Contact: Emily Lamancusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-27 12:15 UTC by Marcel de Rooy
Modified: 2024-05-28 17:50 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.05.00,23.11.06,23.05.12


Attachments
Bug 36438: Check object for calling metadata (1.21 KB, patch)
2024-03-27 12:24 UTC, Marcel de Rooy
Details | Diff | Splinter Review
Bug 36438: Check object for calling metadata (1.24 KB, patch)
2024-04-11 13:17 UTC, Emily Lamancusa
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel de Rooy 2024-03-27 12:15:58 UTC
Coming from the logs.
Counterpart of bug 35266.
Comment 1 Marcel de Rooy 2024-03-27 12:24:48 UTC
Created attachment 163986 [details] [review]
Bug 36438: Check object for calling metadata

Resolve: Can't call method "metadata" on an undefined value at catalogue/MARCdetail.pl line 93

The proceeding lines check for $record and respond appropriately.

Test plan:
Call catalogue/MARCdetail.pl with an unexisting biblionumber.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 2 Marcel de Rooy 2024-03-27 12:25:13 UTC
Trivial oneliner: Self SO
Comment 3 Emily Lamancusa 2024-04-11 13:17:42 UTC
Created attachment 164688 [details] [review]
Bug 36438: Check object for calling metadata

Resolve: Can't call method "metadata" on an undefined value at catalogue/MARCdetail.pl line 93

The proceeding lines check for $record and respond appropriately.

Test plan:
Call catalogue/MARCdetail.pl with an unexisting biblionumber.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Comment 4 Katrin Fischer 2024-04-12 09:28:20 UTC
Pushed for 24.05!

Well done everyone, thank you!
Comment 5 Fridolin Somers 2024-05-23 12:31:57 UTC
Pushed to 23.11.x for 23.11.06
Comment 6 Lucas Gass 2024-05-28 17:50:17 UTC
Backported to 23.05.x for upcoming 23.05.12