From faf3e04ea774c9bbbf675ea13fd41bf5c1e5daf2 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 14 Aug 2026 14:44:09 +0200 Subject: [PATCH] fix(group): Set the display name on every backends that supports it fix(group): Set the display name on every backends that supports it Otherwise it apply the change only to the group backend with ISetDisplaynameBackend Signed-off-by: Carl Schwan [skip ci] --- lib/private/Group/Group.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/private/Group/Group.php b/lib/private/Group/Group.php index a6bb192390f4a..944345d033f3c 100644 --- a/lib/private/Group/Group.php +++ b/lib/private/Group/Group.php @@ -82,6 +82,7 @@ public function getDisplayName(): string { public function setDisplayName(string $displayName): bool { $displayName = trim($displayName); + $changed = false; if ($displayName !== '') { $this->dispatcher->dispatchTyped(new BeforeGroupChangedEvent($this, 'displayName', $displayName, $this->displayName)); foreach ($this->backends as $backend) { @@ -93,6 +94,10 @@ public function setDisplayName(string $displayName): bool { } } } + if ($changed) { + $this->dispatcher->dispatchTyped(new GroupChangedEvent($this, 'displayName', $displayName, $oldDisplayName)); + return true; + } return false; }