]> git.mxchange.org Git - jjobs-war.git/commitdiff
opps, forgot to clear this data (cherry-pick this)
authorRoland Häder <roland@mxchange.org>
Thu, 12 May 2016 14:44:26 +0000 (16:44 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 14 May 2016 12:55:04 +0000 (14:55 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java

index 416afd4036929711f099a79db5424d22da1396c1..8ffe2a92e5f05fc3533cef7e1359b63393d0f2c7 100644 (file)
@@ -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);