From: Chris Sharp Date: Thu, 8 Oct 2020 16:56:16 +0000 (-0400) Subject: only apply fields with values to address objects X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=22d3370ba339df291f9ef52197d6ad647fe4c441;p=evergreen%2Fpines.git only apply fields with values to address objects --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm index e5c81faf9c..bbef61de8b 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm @@ -500,10 +500,10 @@ sub add_addresses { if ($field =~ /physical/) { (my $col_field = $field) =~ s/physical_//g; - $physical_addr->$col_field($val); + $physical_addr->$col_field($val) if $val; } else { (my $col_field = $field) =~ s/mailing_//g; - $mailing_addr->$col_field($val); + $mailing_addr->$col_field($val) if $val; } }