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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 13 Mar 2023 18:56:41 +0000 (15:56 -0300)
commit71bf715596769577766cbf8c21972826e766e97f
tree78f5b81278e86449827ad4e9ec0495636448a5e9
parentc3325f815fadf6ad547d23c7ca3cf54884a016ad
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>
Koha/BackgroundJob/CreateEHoldingsFromBiblios.pm
t/db_dependent/Koha/BackgroundJob/CreateEHoldingsFromBiblios.t