Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/Field/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
Loading