X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/c8e0c77f4da1fe14f1294a3be2e437c24f40eaea..e0811efeffea10076fc8ab4db310b4c5187ef293:/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'));