From: Roland Häder Date: Fri, 23 Jun 2017 22:43:27 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=96cf63808d15c182083d2f40c37eff9a214c3998;p=jjobs-war.git Please cherry-pick: - set missing user locale which is being taken from the currently set locale in localization controller Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java index 888d61d4..09b01f3a 100644 --- a/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java @@ -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