From e9f70ce5e6dc2fc322f239bcc8567aa4fb037dad Mon Sep 17 00:00:00 2001 From: i-just Date: Fri, 27 Feb 2026 14:07:06 +0100 Subject: [PATCH 1/2] if address doesn't have a title; use "untitled address" wording --- src/elements/Address.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/elements/Address.php b/src/elements/Address.php index 20ab789bfc9..9eebb3f6546 100644 --- a/src/elements/Address.php +++ b/src/elements/Address.php @@ -740,6 +740,21 @@ public function defineRules(): array return $rules; } + /** + * @inheritdoc + */ + public function getChipLabelHtml(): string + { + $html = parent::getChipLabelHtml(); + if ($html !== '') { + return $html; + } + + return Craft::t('app', 'Untitled {type}', [ + 'type' => self::lowerDisplayName(), + ]); + } + /** * @inheritdoc */ From a61818a6f7633d4b12305bf23bae7854afe72814 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Wed, 4 Mar 2026 15:48:48 -0800 Subject: [PATCH 2/2] Release note [ci skip] --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65c1f91718b..b9020c31b88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Fixed a bug where SVG files missing their `width` and `height` attributes weren’t getting them set as expected. - Fixed an error that could occur when applying project config changes. ([#18477](https://github.com/craftcms/cms/issues/18477)) - Fixed a bug where Content Block fields’ nested values weren’t always getting set correctly via `resave` commands. ([#18453](https://github.com/craftcms/cms/issues/18453)) +- Fixed a bug where addresses without labels weren’t getting chip labels. ([#18481](https://github.com/craftcms/cms/issues/18481)) ## 5.9.14 - 2026-02-25