]> git.koha-community.org Git - koha.git/commit
Bug 33497: Don't get host items if the MARC record is invalid
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 7 Jul 2023 13:50:52 +0000 (15:50 +0200)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Tue, 18 Jul 2023 13:46:02 +0000 (13:46 +0000)
commit33216808d6d656a3cc25d9e1bc96edd6baac5261
treef30e5762de31f837b456f13b70343d29b7852add
parentd1536ebc2d1752fb2fe52d339bb4571a9f1154f3
Bug 33497: Don't get host items if the MARC record is invalid

When don't want to explode with "invalid data" later so we need to
condition the host_item search

call trace was
        Koha::Biblio::Metadata::record('Koha::Biblio::Metadata=HASH(0x55ab92e60120)') called at /kohadevbox/koha/Koha/Biblio.pm line 538
        Koha::Biblio::_host_itemnumbers('Koha::Biblio=HASH(0x55ab92e4d5c0)') called at /kohadevbox/koha/Koha/Biblio.pm line 498
        Koha::Biblio::items('Koha::Biblio=HASH(0x55ab92e4d5c0)', 'HASH(0x55ab934615d8)') called at /kohadevbox/koha/catalogue/detail.pl line 200

This is fixing t/db_dependent/selenium/regressions.t

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 8bd54203126322392abeab29144c6240e0f95e27)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit a4896e3832fba1ca6a9e388c47c925dc225ddcf1)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
catalogue/detail.pl