Skip to content

Commit

Permalink
Set new user's language code to creator's language
Browse files Browse the repository at this point in the history
  • Loading branch information
StarDylan committed Oct 22, 2024
1 parent 3e2e93a commit c6275c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/femr/ui/controllers/admin/UsersController.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ public Result createPost() {
CreateViewModel viewModel = form.bindFromRequest().get();
UserItem user = createUserItem(viewModel);

user.setLanguageCode(currentUser.getLanguageCode());

ServiceResponse<UserItem> response = userService.createUser(user, viewModel.getPassword(), currentUser.getId());
if (response.hasErrors()) {
messages.add(response.getErrors().get(""));
Expand Down

0 comments on commit c6275c3

Please sign in to comment.