From: Roland Häder Date: Thu, 12 May 2016 14:44:26 +0000 (+0200) Subject: opps, forgot to clear this data (cherry-pick this) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ca571ce93d8402f178083531cd0866f50a6aff20;p=jjobs-war.git opps, forgot to clear this data (cherry-pick this) Signed-off-by: Roland Häder --- 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);