Skip to content

Commit 73b20e4

Browse files
authored
Merge pull request #16649 from craftcms/bugfix/16640-drafts-and-propagation
Bugfix/16640 drafts and propagation
2 parents 28bc5e1 + 5360058 commit 73b20e4

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Fixed a bug where Matrix fields’ “Default View Mode” settings included a “Display in a structured table” option. ([#16631](https://github.com/craftcms/cms/discussions/16631))
1010
- Fixed a bug where user addresses weren’t getting restored when soft-deleted users were restored. ([#16636](https://github.com/craftcms/cms/pull/16636))
1111
- Fixed a bug where pressing the “New entry” button multiple times quickly would create multiple nested entries, circumventing the “Max Entries” settings. ([#16642](https://github.com/craftcms/cms/issues/16642))
12+
- Fixed a bug where Link fields without values were always getting marked as dirty when making another change to the element. ([#16649](https://github.com/craftcms/cms/pull/16649))
1213
- Fixed a potential phishing attack vector.
1314
- Fixed a styling issue.
1415

src/fields/Link.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -626,14 +626,6 @@ protected function inputHtml(mixed $value, ?ElementInterface $element, bool $inl
626626
$view->namespaceInputId($id),
627627
]);
628628

629-
if (!$value) {
630-
// Override the initial value being set to null by CustomField::inputHtml()
631-
$view->setInitialDeltaValue($this->handle, [
632-
'type' => $valueTypeId,
633-
'value' => '',
634-
]);
635-
}
636-
637629
$typeInputName = "$this->handle[type]";
638630

639631
if (count($linkTypes) === 1) {

0 commit comments

Comments
 (0)