From c6e20630b8b3617595724efcf718c4ec651580eb Mon Sep 17 00:00:00 2001 From: Daniel Valadas Date: Sat, 7 Nov 2020 16:15:47 -0500 Subject: [PATCH] Fixed an issue where new users would have no preferred locale. The user preferred locale is a required field in user profiles. Some change made it that in 9.8.0 this property is null. This PR reverts the behavior so the preferred locale is set on new users. --- .../Components/Users/RegisterController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Users/RegisterController.cs b/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Users/RegisterController.cs index e3382a8f236..1171c0679ec 100644 --- a/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Users/RegisterController.cs +++ b/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Users/RegisterController.cs @@ -116,8 +116,8 @@ public UserBasicDto Register(RegisterationDetails registerationDetails) newUser.Membership.PasswordConfirm = newUser.Membership.Password; //set other profile properties - newUser.Profile.PreferredLocale = new Localization().CurrentUICulture; newUser.Profile.InitialiseProfile(portalSettings.PortalId); + newUser.Profile.PreferredLocale = new Localization().CurrentUICulture; newUser.Profile.PreferredTimeZone = portalSettings.TimeZone; //derive display name from supplied firstname, lastname or from email