]> git.mxchange.org Git - pizzaservice-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:50:11 +0000 (00:50 +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/pizzaapplication/beans/user/PizzaUserWebSessionBean.java

index 06f8d61e7ad389fa0f72459fe43108ea5e8a660f..0cb32db1f855d203cc565feaa8ad511e23600a70 100644 (file)
@@ -56,6 +56,7 @@ import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
 import org.mxchange.pizzaapplication.beans.BasePizzaController;
 import org.mxchange.pizzaapplication.beans.contact.PizzaContactWebSessionController;
 import org.mxchange.pizzaapplication.beans.features.PizzaFeaturesWebApplicationController;
+import org.mxchange.pizzaapplication.beans.localization.PizzaLocalizationSessionController;
 import org.mxchange.pizzaapplication.beans.login.user.PizzaUserLoginWebSessionController;
 
 /**
@@ -84,6 +85,12 @@ public class PizzaUserWebSessionBean extends BasePizzaController implements Pizz
        @Inject
        private PizzaFeaturesWebApplicationController featureController;
 
+       /**
+        * Localization controller
+        */
+       @Inject
+       private PizzaLocalizationSessionController localizationController;
+
        /**
         * Event being fired when user updated personal data
         */
@@ -519,9 +526,10 @@ public class PizzaUserWebSessionBean extends BasePizzaController implements Pizz
                        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