]> git.koha-community.org Git - koha.git/commit
Bug 32781: Prevent import from list to fail if package does not exist
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 1 Feb 2023 15:23:59 +0000 (16:23 +0100)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Tue, 14 Mar 2023 10:43:05 +0000 (10:43 +0000)
commit924530a7529140dc3a6821901310bed511b5ff7a
tree4d0d9d630c2649120c77ef410b70784de67f2137
parent6295d2d2ab98188e5aaf3e233058b0064deb353e
Bug 32781: Prevent import from list to fail if package does not exist

This is theorical (caught when writting tests) but we need to deal with
it.

Can't call method "resources" on an undefined value at /kohadevbox/koha/Koha/BackgroundJob/CreateEHoldingsFromBiblios.pm line 94.

Test plan:
  prove t/db_dependent/Koha/BackgroundJob/CreateEHoldingsFromBiblios.t
must return green

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 71bf715596769577766cbf8c21972826e766e97f)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Koha/BackgroundJob/CreateEHoldingsFromBiblios.pm
t/db_dependent/Koha/BackgroundJob/CreateEHoldingsFromBiblios.t