X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b16b33c220a567bf8a8b998ff69d44d380b0a181..cac2ae9bcd47fc55d35c37e25dbb03cd6ac6edeb:/SL/Controller/CsvImport/Contact.pm diff --git a/SL/Controller/CsvImport/Contact.pm b/SL/Controller/CsvImport/Contact.pm index 5ca2ae848..2eb877e97 100644 --- a/SL/Controller/CsvImport/Contact.pm +++ b/SL/Controller/CsvImport/Contact.pm @@ -47,7 +47,7 @@ sub check_objects { if ($object->cp_id) { my $existing_contact = $contacts_by_id{ $object->cp_id }; if (!$existing_contact) { - $contacts_by_id{ $object->cp_id } = $object; + $contacts_by_id{ $object->cp_id } = $object if $object->cp_id; } elsif ($update_policy eq 'skip') { push(@{ $entry->{errors} }, $::locale->text('Skipping due to existing entry in database'));