diff --git a/CHANGELOG.md b/CHANGELOG.md index b76ef148e3f..01fb2c6224d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Fixed some errors that could occur when running Craft through Laravel Octane ([#18921](https://github.com/craftcms/cms/pull/18921)) - Fixed an error that occurred when Updates were cached and deserialized. - The default value for `GeneralConfig::$loginPath` is now `false` +- Fixed an error that prevented link fields from saving. ## 6.0.0-alpha.4 - 2026-05-19 diff --git a/src/Field/Link.php b/src/Field/Link.php index 572071739ba..9dbc3ae2535 100644 --- a/src/Field/Link.php +++ b/src/Field/Link.php @@ -529,10 +529,10 @@ public function normalizeValue(mixed $value, ?ElementInterface $element): ?LinkD } $typeId = $this->resolveType($value); - $config['linkType'] = $linkTypes[$typeId] ?? ComponentHelper::createComponent(self::types()[$typeId], BaseLinkType::class); + $linkType = $linkTypes[$typeId] ?? ComponentHelper::createComponent(self::types()[$typeId], BaseLinkType::class); } - return new LinkData($config['value'], $config['linkType']); + return new LinkData($config['value'], $linkType); } /**