From: Roland Häder Date: Wed, 24 Aug 2016 09:08:21 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0b8b142546115726a53895159f8913d305282fd3;p=pizzaservice-mailer-ejb.git Please cherry-pick: - unsetting all phone numbers make them disconnected from the contact instance, better is to make them managed (merge) --- diff --git a/src/java/org/mxchange/jcontacts/contact/AddressbookContactSessionBean.java b/src/java/org/mxchange/jcontacts/contact/AddressbookContactSessionBean.java index f904f20..e3f6cf6 100644 --- a/src/java/org/mxchange/jcontacts/contact/AddressbookContactSessionBean.java +++ b/src/java/org/mxchange/jcontacts/contact/AddressbookContactSessionBean.java @@ -280,11 +280,6 @@ public class AddressbookContactSessionBean extends BaseAddressbookDatabaseBean i throw new IllegalStateException(MessageFormat.format("contact.contactId={0} is not valid.", contact.getContactId())); //NOI18N } - // Remove all referenced phone numbers - contact.setContactFaxNumber(null); - contact.setContactLandLineNumber(null); - contact.setContactMobileNumber(null); - // Merge cellphone, land-line and fix Contact managedContact = this.mergeContactData(contact);