From ca571ce93d8402f178083531cd0866f50a6aff20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 12 May 2016 16:44:26 +0200 Subject: [PATCH] opps, forgot to clear this data (cherry-pick this) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../beans/contact/JobsContactWebSessionBean.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java index 416afd40..8ffe2a92 100644 --- a/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java @@ -16,7 +16,6 @@ */ package org.mxchange.jjobs.beans.contact; -import de.chotime.landingpage.beans.login.LandingUserLoginWebSessionController; import java.text.MessageFormat; import java.util.Collections; import java.util.Date; @@ -403,12 +402,6 @@ public class JobsContactWebSessionBean implements JobsContactWebSessionControlle throw new FaceletException(new IllegalArgumentException("Not all personal data is set, but createContactInstance() is called.")); //NOI18N } - // Required personal data must be set - assert (this.isRequiredPersonalDataSet()) : "not all personal data is set"; //NOI18N - - // Create new contact instance - Contact localContact = new UserContact(); - // Generate phone number DialableLandLineNumber phone = new LandLineNumber(this.getPhoneCountry(), this.getPhoneAreaCode(), this.getPhoneNumber()); DialableCellphoneNumber cellphone = new CellphoneNumber(this.getCellphoneCarrier(), this.getCellphoneNumber()); @@ -489,7 +482,7 @@ public class JobsContactWebSessionBean implements JobsContactWebSessionControlle //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("{0}.createContactInstance: contact={1} - EXIT!", this.getClass().getSimpleName(), contact)); // Return it - return localContact; + return contact; } @Override @@ -893,8 +886,13 @@ public class JobsContactWebSessionBean implements JobsContactWebSessionControlle this.setEmailAddress(null); this.setEmailAddressRepeat(null); this.setPhoneAreaCode(null); + this.setPhoneCountry(null); + this.setPhoneNumber(null); this.setCellphoneCarrier(null); + this.setCellphoneNumber(null); this.setFaxAreaCode(null); + this.setFaxCountry(null); + this.setFaxNumber(null); // - other data this.setBirthday(null); -- 2.39.5