Skip to content

Commit 4f5210d

Browse files
authored
Merge pull request #877 from nextcloud/backport/873/stable-5.2
2 parents 60d8302 + 8355cb0 commit 4f5210d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/UserBackend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,8 +657,8 @@ public function updateAttributes($uid,
657657
$currentDisplayname = $this->getDisplayName($uid);
658658
if ($newDisplayname !== null
659659
&& $currentDisplayname !== $newDisplayname) {
660-
$this->eventDispatcher->dispatchTyped(new UserChangedEvent($user, 'displayName', $newDisplayname, $currentDisplayname));
661660
$this->setDisplayName($uid, $newDisplayname);
661+
$this->eventDispatcher->dispatchTyped(new UserChangedEvent($user, 'displayName', $newDisplayname, $currentDisplayname));
662662
}
663663

664664
if ($newQuota !== null) {

0 commit comments

Comments
 (0)