From c6275c3cf48e952cc3306df81eb9e789a4e7cf01 Mon Sep 17 00:00:00 2001 From: Dylan Starink Date: Tue, 22 Oct 2024 10:29:03 -0700 Subject: [PATCH] Set new user's language code to creator's language --- app/femr/ui/controllers/admin/UsersController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/femr/ui/controllers/admin/UsersController.java b/app/femr/ui/controllers/admin/UsersController.java index e8b3c84bd..cfb17db46 100644 --- a/app/femr/ui/controllers/admin/UsersController.java +++ b/app/femr/ui/controllers/admin/UsersController.java @@ -124,6 +124,8 @@ public Result createPost() { CreateViewModel viewModel = form.bindFromRequest().get(); UserItem user = createUserItem(viewModel); + user.setLanguageCode(currentUser.getLanguageCode()); + ServiceResponse response = userService.createUser(user, viewModel.getPassword(), currentUser.getId()); if (response.hasErrors()) { messages.add(response.getErrors().get(""));