Skip to content

Commit

Permalink
Fix link field not caching element details on save
Browse files Browse the repository at this point in the history
  • Loading branch information
Tam committed Oct 19, 2023
1 parent bb823e4 commit dbe85f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.2.1 - 2023-10-19
### Fixed
- Fix link field not caching element details on save

## 4.2.0 - 2023-10-06
### Added
- Assets will have their CDN cache cleared when edited
Expand Down
2 changes: 2 additions & 0 deletions src/fields/LinkField.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ public function beforeElementSave (ElementInterface $element, bool $isNew): bool
}
}

$element->{$this->handle} = $value;

return parent::beforeElementSave($element, $isNew);
}

Expand Down

0 comments on commit dbe85f4

Please sign in to comment.