]> git.mxchange.org Git - pizzaservice-mailer-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Wed, 24 Aug 2016 09:08:21 +0000 (11:08 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 9 Jun 2017 20:09:22 +0000 (22:09 +0200)
- unsetting all phone numbers make them disconnected from the contact instance, better is to make them managed (merge)

src/java/org/mxchange/jcontacts/contact/AddressbookContactSessionBean.java

index f904f204199b18c2e143b9e83663bf98fbebcc2d..e3f6cf6bd7178f1277a9dfb1794b75efaa97b07e 100644 (file)
@@ -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);