]> git.mxchange.org Git - pizzaservice-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:22:36 +0000 (21:22 +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/PizzaContactSessionBean.java

index 1d1d5d6d51f9b88d5fdf4feaa84cbfbb170e055a..4f9aa3906a26afb869cb9c6df1adc974becd72a3 100644 (file)
@@ -282,11 +282,6 @@ public class PizzaContactSessionBean extends BasePizzaDatabaseBean implements Co
                        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);