]> git.mxchange.org Git - jjobs-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Wed, 17 Aug 2016 15:10:05 +0000 (17:10 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 21 Aug 2016 19:44:07 +0000 (21:44 +0200)
- also phoneAreaCode needs to be copied
- ... and it is Integer, not Long

src/java/org/mxchange/jjobs/beans/helper/JobsWebRequestHelper.java
src/java/org/mxchange/jjobs/beans/phone/JobsAdminPhoneWebRequestBean.java
src/java/org/mxchange/jjobs/beans/phone/JobsAdminPhoneWebRequestController.java

index 32393096cb571279a212a62e6b9a5ffb5d245546..cc6bb8f99a2d169b3a7cd5f524ac26ccd0442154 100644 (file)
@@ -149,6 +149,7 @@ public class JobsWebRequestHelper implements JobsWebRequestController {
                }
 
                // Copy all (changeable) data fields to admin controller
+               this.adminPhoneController.setPhoneAreaCode(this.getFaxNumber().getPhoneAreaCode());
                this.adminPhoneController.setPhoneCountry(this.getFaxNumber().getPhoneCountry());
                this.adminPhoneController.setPhoneNumber(this.getFaxNumber().getPhoneNumber());
        }
@@ -189,6 +190,7 @@ public class JobsWebRequestHelper implements JobsWebRequestController {
                }
 
                // Copy all (changeable) data fields to admin controller
+               this.adminPhoneController.setPhoneAreaCode(this.getLandLineNumber().getPhoneAreaCode());
                this.adminPhoneController.setPhoneCountry(this.getLandLineNumber().getPhoneCountry());
                this.adminPhoneController.setPhoneNumber(this.getLandLineNumber().getPhoneNumber());
        }
index cb6256804be18c95efab921d3ec8d03d5c6c2c28..e1de16d8ddf8f5119aecfd385fc75a1a2622018f 100644 (file)
@@ -114,7 +114,7 @@ public class JobsAdminPhoneWebRequestBean extends BaseJobsController implements
        /**
         * Area code (city dial prefix)
         */
-       private Long phoneAreaCode;
+       private Integer phoneAreaCode;
 
        /**
         * Generic hone controller
@@ -362,12 +362,12 @@ public class JobsAdminPhoneWebRequestBean extends BaseJobsController implements
        }
 
        @Override
-       public Long getPhoneAreaCode () {
+       public Integer getPhoneAreaCode () {
                return this.phoneAreaCode;
        }
 
        @Override
-       public void setPhoneAreaCode (final Long phoneAreaCode) {
+       public void setPhoneAreaCode (final Integer phoneAreaCode) {
                this.phoneAreaCode = phoneAreaCode;
        }
 
index 45522ccc02b30d404c306b633fb9a904a933b704..5c6d95f0d3be185d5475e27e336c21a68c996b9d 100644 (file)
@@ -144,14 +144,14 @@ public interface JobsAdminPhoneWebRequestController extends Serializable {
         * <p>
         * @return Phone area code
         */
-       Long getPhoneAreaCode ();
+       Integer getPhoneAreaCode ();
 
        /**
         * Setter for phone area code
         * <p>
         * @param phoneAreaCode Phone area code
         */
-       void setPhoneAreaCode (final Long phoneAreaCode);
+       void setPhoneAreaCode (final Integer phoneAreaCode);
 
        /**
         * Getter for phone country (for dial prefix)