Skip to content

Commit

Permalink
Fixed #9966
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Oct 25, 2021
1 parent c90bcb2 commit 1bfa15a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Fixed a bug where `craft\helpers\Html::parseTagAttributes()` was including trailing tabs, newlines, and other non-space whitespace characters in the parsed values of unquoted attributes. ([#9997](https://github.com/craftcms/cms/pull/9997))
- Fixed an error that could occur if the `log` component was configured with a custom log target and `flushInterval` set to `1`.
- Fixed a bug where `plugin/*` commands weren’t always handling failures properly. ([#9984](https://github.com/craftcms/cms/issues/9984))
- Fixed a bug where entry title changes could be overlooked when merging upstream changes into a draft. ([#9966](https://github.com/craftcms/cms/issues/9966))

## 3.7.17.2 - 2021-10-21

Expand Down
6 changes: 4 additions & 2 deletions src/services/Elements.php
Original file line number Diff line number Diff line change
Expand Up @@ -2871,8 +2871,10 @@ private function _propagateElement(ElementInterface $element, array $siteInfo, $
$siteElement->title = $element->title;
}

// Copy the dirty attributes
$siteElement->setDirtyAttributes($element->getDirtyAttributes());
// Copy the dirty attributes (except title, which may be translatable)
$siteElement->setDirtyAttributes(array_filter($element->getDirtyAttributes(), function(string $attribute): bool {
return $attribute !== 'title';
}));

// Copy any non-translatable field values
if ($element::hasContent()) {
Expand Down

0 comments on commit 1bfa15a

Please sign in to comment.