Bug 31595: Don't process extended attributes if none are inlcuded in the file
authorNick Clemens <nick@bywatersolutions.com>
Wed, 21 Sep 2022 16:10:34 +0000 (16:10 +0000)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Fri, 16 Dec 2022 13:25:25 +0000 (14:25 +0100)
commitc9e44c6e0b0241bb786b91ce2c8833afe31a14fe
treeaa93e28c89319a1a69ca6f107874c3f992a6e47a
parent92b0dc2cdbe0fbed29880c2f0ab7ca50162da727
Bug 31595: Don't process extended attributes if none are inlcuded in the file

This patch simply adds a check to the import process to only process attrbutes if
they have been found in the data

To test:
1 - Import some patrons without extended attributes
2 - Import patrons including extended attributes
3 - Confirm both work unchanged

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 40cff1a774a3a9deea2effb375b3e7272003444c)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 4e4fac93144c174003d49a9d049a52960f34c6e1)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
Koha/Patrons/Import.pm