Skip to content

Commit 3c692b4

Browse files
i-justbrandonkelly
authored andcommitted
force save all when owner has new site ids
1 parent 1ba22da commit 3c692b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Fixed a bug where multi-site elements’ search indexes could be updated twice.
66
- Fixed a bug where the `utils/delete-empty-volume-folders` command was deleting folders that had no assets directly, but had subfolders. ([#16388](https://github.com/craftcms/cms/issues/16388))
7+
- Fixed a bug where some Matrix blocks weren’t getting propagated to newly-added sites of their owners, if any blocks had been modified. ([#16640](https://github.com/craftcms/cms/issues/16640))
78
- Fixed a potential phishing attack vector.
89

910
## 4.14.4 - 2025-02-04

src/services/Matrix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ public function saveField(MatrixField $field, ElementInterface $owner): void
693693
} else {
694694
$blocks = $value->getCachedResult();
695695
if ($blocks !== null) {
696-
$saveAll = false;
696+
$saveAll = !empty($owner->newSiteIds);
697697
} else {
698698
$blocks = (clone $value)->status(null)->all();
699699
$saveAll = true;

0 commit comments

Comments
 (0)