Skip to content

Commit

Permalink
Merge pull request #877 from nextcloud/backport/873/stable-5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
juliushaertl committed Aug 16, 2024
2 parents 60d8302 + 8355cb0 commit 4f5210d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/UserBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,8 @@ public function updateAttributes($uid,
$currentDisplayname = $this->getDisplayName($uid);
if ($newDisplayname !== null
&& $currentDisplayname !== $newDisplayname) {
$this->eventDispatcher->dispatchTyped(new UserChangedEvent($user, 'displayName', $newDisplayname, $currentDisplayname));
$this->setDisplayName($uid, $newDisplayname);
$this->eventDispatcher->dispatchTyped(new UserChangedEvent($user, 'displayName', $newDisplayname, $currentDisplayname));
}

if ($newQuota !== null) {
Expand Down

0 comments on commit 4f5210d

Please sign in to comment.