Skip to content

Commit

Permalink
Merge branch '4.x' into 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ttempleton committed Nov 19, 2024
2 parents 06344e0 + 7330e3d commit 77e52f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,14 @@
- Removed the `neoblocks_owners` table; the Craft 5 `elements_owners` table is used instead
- Removed the `neoblocks.deletedWithOwner` column; the Craft 5 `elements.deletedWithOwner` column is used instead

## 4.2.21 - 2024-11-19

### 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 @@ -331,6 +331,9 @@ public function convertBlockToEntry(Block $neoBlock, ?EntryType $entryType = nul
$entry->siteId = $neoBlock->siteId;
$entry->sortOrder = $neoBlock->sortOrder;
$entry->collapsed = $neoBlock->collapsed;
$entry->enabled = $neoBlock->enabled;
$entry->setEnabledForSite($neoBlock->getEnabledForSite());
$entry->setScenario($neoBlock->getScenario());
$entry->setFieldValues($entryFieldValues);

if ($entryType) {
Expand Down

0 comments on commit 77e52f2

Please sign in to comment.