Skip to content

Commit

Permalink
fix: unable to save modification of firstname or lastname - EXO-74782
Browse files Browse the repository at this point in the history
Before this fix, when user update firstname or lastname in profile, the modification is not saved.
This is because in the the profile is uncessessary reloaded from databse before saving the modification

The commit ensures to not reload the profil, and save it correctly.

Resolves Meeds-io/meeds#2490
  • Loading branch information
rdenarie committed Oct 14, 2024
1 parent 5e2042f commit 57eb0a2
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1146,9 +1146,6 @@ public Response updateUserProfileAttributes(@Context
if (!(profileProperty.isMultiValued() || !profileProperty.getChildren().isEmpty())) {
updateProfileField(profile, profileProperty.getPropertyName(), profileProperty.getValue(), false);
updateProfilePropertyVisibility(profileProperty);
if (profileProperty.getPropertyName().equals(Profile.FIRST_NAME) || profileProperty.getPropertyName().equals(Profile.LAST_NAME) ) {
profile = getUserIdentity(username).getProfile();
}
} else {
List<Map<String, String>> maps = new ArrayList<>();
profileProperty.getChildren().forEach(profilePropertySettingEntity -> {
Expand Down

0 comments on commit 57eb0a2

Please sign in to comment.