]> git.mxchange.org Git - jfinancials-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:43:27 +0000 (00:43 +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/jfinancials/beans/user/FinancialsUserWebSessionBean.java

index 7b6d0136f078c4a552cbdc497609bdb670d8db49..43349c5d268cdc80cd274cf0b0c7454dbdebfe85 100644 (file)
@@ -36,6 +36,7 @@ import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jfinancials.beans.BaseFinancialsController;
 import org.mxchange.jfinancials.beans.contact.FinancialsContactWebSessionController;
 import org.mxchange.jfinancials.beans.features.FinancialsFeaturesWebApplicationController;
+import org.mxchange.jfinancials.beans.localization.FinancialsLocalizationSessionController;
 import org.mxchange.jfinancials.beans.login.user.FinancialsUserLoginWebSessionController;
 import org.mxchange.jusercore.events.confirmation.ObservableUserConfirmedAccountEvent;
 import org.mxchange.jusercore.events.login.ObservableUserLoggedInEvent;
@@ -84,6 +85,12 @@ public class FinancialsUserWebSessionBean extends BaseFinancialsController imple
        @Inject
        private FinancialsFeaturesWebApplicationController featureController;
 
+       /**
+        * Localization controller
+        */
+       @Inject
+       private FinancialsLocalizationSessionController localizationController;
+
        /**
         * Event being fired when user updated personal data
         */
@@ -519,9 +526,10 @@ public class FinancialsUserWebSessionBean extends BaseFinancialsController imple
                        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