]> git.mxchange.org Git - jjobs-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Wed, 24 Aug 2016 09:08:21 +0000 (11:08 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 24 Aug 2016 19:33:16 +0000 (21:33 +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/JobsContactSessionBean.java

index e467b503949496e79ac656f3d20716b4f3013b0e..2c1ff76447f664395a4293417c90a5ad1a8221be 100644 (file)
@@ -280,11 +280,6 @@ public class JobsContactSessionBean extends BaseJobsDatabaseBean implements Cont
                        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);