[Koha-bugs] [Bug 35266] opac-MARCdetail: Can't call method "metadata" on an undefined value
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 15 11:26:22 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35266
Jonathan Druart <jonathan.druart+koha at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #158576|0 |1
is obsolete| |
--- Comment #7 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 158977
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158977&action=edit
Bug 35266: Fix biblio check in opac-MARCdetail
We should check before retrieving metadata.
Test plan;
Try /cgi-bin/koha/opac-MARCdetail?biblionumber=X
Replace X by a not-existing biblionumber.
Verify that you get a 404 error page.
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: David Nind <david at davidnind.com>
JD amended patch: Use ternary op
Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list