diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e77fe13f91..fa50f268184 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Release Notes for Craft CMS 4 +## Unreleased + +- Fixed a bug where blank user group descriptions weren’t getting omitted from project config data. ([#16272](https://github.com/craftcms/cms/pull/16272)) + ## 4.13.5 - 2024-12-03 - Fixed a bug where asset, category, and entry sources defined by the `EVENT_REGISTER_SOURCES` event didn’t have any custom fields available to them, unless the `EVENT_REGISTER_FIELD_LAYOUTS` event was also used to define the available field layouts for the event-defined source. ([#16256](https://github.com/craftcms/cms/discussions/16256)) diff --git a/src/models/UserGroup.php b/src/models/UserGroup.php index 64130ce2387..2cca1fb27fd 100644 --- a/src/models/UserGroup.php +++ b/src/models/UserGroup.php @@ -124,7 +124,7 @@ public function getConfig(bool $withPermissions = true): array $config = [ 'name' => $this->name, 'handle' => $this->handle, - 'description' => $this->description, + 'description' => $this->description ?: null, ]; if ($withPermissions && $this->id) {