]> git.mxchange.org Git - jjobs-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sat, 5 Nov 2022 04:39:57 +0000 (05:39 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 5 Nov 2022 04:43:39 +0000 (05:43 +0100)
- updated to latest changes in constructor (order of parameters)
- also used newly added constructor with all optional class fields, except
  contactId, fax/land-line/mobile number and created/updated fields

src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestBean.java
src/java/org/mxchange/jjobs/beans/contact/JobsContactWebRequestBean.java

index 045c81263937a42655a6de11836623c4f34279a4..ab2219d7c0143557cbd70e4c442684b307c3aa65 100644 (file)
@@ -450,19 +450,21 @@ public class JobsAdminContactWebRequestBean extends BaseJobsBean implements Jobs
                                          this.getPersonalTitle(),
                                          this.getFirstName(),
                                          this.getFamilyName(),
-                                         this.getContactCountry()
+                                         this.getContactCountry(),
+                                         Boolean.FALSE,
+                                         this.getStreet(),
+                                         this.getHouseNumber(),
+                                         this.getHouseNumberExtension(),
+                                         this.getZipCode(),
+                                         this.getCity(),
+                                         this.getEmailAddress(),
+                                         this.getAcademicTitle(),
+                                         this.getBirthday(),
+                                         this.getComment()
                          );
 
-               // Add all others
-               localContact.setContactBirthday(this.getBirthday());
-               localContact.setContactCity(this.getCity());
-               localContact.setContactComment(this.getComment());
-               localContact.setContactEmailAddress(this.getEmailAddress());
-               localContact.setContactHouseNumber(this.getHouseNumber());
+               // Add missing fields
                localContact.setContactId(this.getContactId());
-               localContact.setContactStreet(this.getStreet());
-               localContact.setContactTitle(this.getAcademicTitle());
-               localContact.setContactZipCode(this.getZipCode());
 
                // Don't set null or wrong references
                if ((landLine instanceof DialableLandLineNumber) && (landLine.getPhoneCountry() instanceof Country) && (this.getLandLineAreaCode() != null) && (this.getLandLineNumber() != null) && (this.getLandLineAreaCode() > 0) && (this.getLandLineNumber() > 0)) {
index 2b8415c33da2178bb69cba0bff817128b49469ee..5578c06162787cdc7e526bfea14b304284fab21f 100644 (file)
@@ -331,7 +331,8 @@ public class JobsContactWebRequestBean extends BaseJobsBean implements JobsConta
                                          this.getPersonalTitle(),
                                          this.getFirstName(),
                                          this.getFamilyName(),
-                                         this.getCountry()
+                                         this.getCountry(),
+                                         Boolean.FALSE
                          );
 
                // Return instance