Bug 22025: Remove warnings when importing patrons
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 16 Mar 2020 14:43:49 +0000 (15:43 +0100)
committerJoy Nelson <joy@bywatersolutions.com>
Fri, 3 Apr 2020 21:11:23 +0000 (21:11 +0000)
commit78f10451101b38bb160bb50941f377f5c41ea49e
tree05e5f7d0cf1416a701c4a319ac8f64431c2c0c3b
parent32e0e6dafd484f8f92239b1eaf8bc837681189dc
Bug 22025: Remove warnings when importing patrons

The following warning is raised when importing patrons
Argument "" isn't numeric in numeric eq (==) at /usr/share/perl5/DBIx/Class/Row.pm line 1018

if one of the following headers is passed but does not have a value:
 * privacy
 * privacy_guarantor_fines
 * privacy_guarantor_checkouts
 * anonymized

Test plan:
- Do not apply the patch
- Generated a csv file with at least one those headers
- Import it using the import_patrons.pl script (or using the GUI)
- Notice the warnings without the patch
- Apply the patch
- Confirm that the warnings do not longer appear

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
Koha/Patrons/Import.pm