]> git.mxchange.org Git - jjobs-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 23 Jun 2017 22:43:27 +0000 (00:43 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 23 Jun 2017 22:45:28 +0000 (00:45 +0200)
- set missing user locale which is being taken from the currently set locale in
  localization controller

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java

index 888d61d4c67c35e9cf30aa0d2c62498f550b32ad..09b01f3a73a28fd8079fac0258cb021a34618cff 100644 (file)
@@ -36,6 +36,7 @@ import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jjobs.beans.BaseJobsController;
 import org.mxchange.jjobs.beans.contact.JobsContactWebSessionController;
 import org.mxchange.jjobs.beans.features.JobsFeaturesWebApplicationController;
+import org.mxchange.jjobs.beans.localization.JobsLocalizationSessionController;
 import org.mxchange.jjobs.beans.login.user.JobsUserLoginWebSessionController;
 import org.mxchange.jusercore.events.confirmation.ObservableUserConfirmedAccountEvent;
 import org.mxchange.jusercore.events.login.ObservableUserLoggedInEvent;
@@ -84,6 +85,12 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
        @Inject
        private JobsFeaturesWebApplicationController featureController;
 
+       /**
+        * Localization controller
+        */
+       @Inject
+       private JobsLocalizationSessionController localizationController;
+
        /**
         * Event being fired when user updated personal data
         */
@@ -519,9 +526,10 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
                        this.setUserPasswordRepeat(randomPassword);
                }
 
-               // Set user name and mode
+               // Set user name profile mode and locale
                user.setUserName(this.getUserName());
                user.setUserProfileMode(this.getUserProfileMode());
+               user.setUserLocale(this.localizationController.getLocale());
 
                // Is multiple registration page
                if ((createContactData) || (!this.featureController.isFeatureEnabled("user_register_multiple_page"))) { //NOI18N