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)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 5 Dec 2022 20:15:55 +0000 (20:15 +0000)
commit4e4fac93144c174003d49a9d049a52960f34c6e1
tree3b8840353bf22ccd34d8e9771acd1611f0328743
parent679f9942c79cbac84ccf72a410c8c925e5ddc1ff
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>
Koha/Patrons/Import.pm