]> git.mxchange.org Git - addressbook-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:46:57 +0000 (00:46 +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/addressbook/beans/user/AddressbookUserWebSessionBean.java

index c77ed04509b1a5089f89d59611776a7206b45152..33495b9ca38621cfd56e22be616f3d7ea5315501 100644 (file)
@@ -35,6 +35,7 @@ import javax.naming.NamingException;
 import org.mxchange.addressbook.beans.BaseAddressbookController;
 import org.mxchange.addressbook.beans.contact.AddressbookContactWebSessionController;
 import org.mxchange.addressbook.beans.features.AddressbookFeaturesWebApplicationController;
+import org.mxchange.addressbook.beans.localization.AddressbookLocalizationSessionController;
 import org.mxchange.addressbook.beans.login.user.AddressbookUserLoginWebSessionController;
 import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jusercore.events.confirmation.ObservableUserConfirmedAccountEvent;
@@ -84,6 +85,12 @@ public class AddressbookUserWebSessionBean extends BaseAddressbookController imp
        @Inject
        private AddressbookFeaturesWebApplicationController featureController;
 
+       /**
+        * Localization controller
+        */
+       @Inject
+       private AddressbookLocalizationSessionController localizationController;
+
        /**
         * Event being fired when user updated personal data
         */
@@ -519,9 +526,10 @@ public class AddressbookUserWebSessionBean extends BaseAddressbookController imp
                        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