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'));
};
}
-sub field_lengths {
- return ( cp_title => 75,
- cp_givenname => 75,
- cp_name => 75,
- cp_phone1 => 75,
- cp_phone2 => 75,
- cp_gender => 1,
- );
-}
-
sub setup_displayable_columns {
my ($self) = @_;