- // Yes, then update as well
- contact.getContactFaxNumber().setPhoneAreaCode(this.getFaxAreaCode());
- contact.getContactFaxNumber().setPhoneNumber(this.getFaxNumber());
- }
-
- // Is there a cellphone number?
- if (contact.getContactCellphoneNumber() instanceof DialableCellphoneNumber) {
- // Debug message
- System.out.println(MessageFormat.format("ContactWebBean:doChangePersonalData: cellPhoneId={0}", contact.getContactCellphoneNumber().getPhoneId())); //NOI18N
-
- // Yes, then update as well
- contact.getContactCellphoneNumber().setCellphoneProvider(this.getCellphoneCarrier());
- contact.getContactCellphoneNumber().setPhoneNumber(this.getCellphoneNumber());
- }
+ // Update contact's fax number
+ this.isFaxUnlinked = ContactUtils.updateFaxNumber(contact, this.getFaxCountry(), this.getFaxAreaCode(), this.getFaxNumber());