Skip to content

Commit

Permalink
Fix #966
Browse files Browse the repository at this point in the history
  • Loading branch information
ttempleton committed Nov 19, 2024
1 parent 2b60839 commit d992fa4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
### Changed
- When running Craft garbage collection, Neo will now delete Neo block owner data where the owner has previously been deleted

### Fixed
- Fixed a Neo-to-Matrix conversion bug where disabled Neo blocks were being converted to enabled Matrix blocks

## 4.2.20 - 2024-11-13

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions src/services/Conversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ public function convertBlockToMatrix(Block $neoBlock, ?MatrixBlockType $matrixBl
$matrixBlock->siteId = $neoBlock->siteId;
$matrixBlock->sortOrder = $neoBlock->sortOrder;
$matrixBlock->collapsed = $neoBlock->collapsed;
$matrixBlock->enabled = $neoBlock->enabled;
$matrixBlock->setEnabledForSite($neoBlock->getEnabledForSite());
$matrixBlock->setScenario($neoBlock->getScenario());
$matrixBlock->setFieldValues($blockFieldValues);

if ($matrixBlockType) {
Expand Down

0 comments on commit d992fa4

Please sign in to comment.