Skip to content

Commit

Permalink
Fix block type clone error if using icon paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ttempleton committed Mar 8, 2024
1 parent a968ec6 commit 4e2b93e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixed
- Fixed missing `getField()` method on blocks
- Fixed an error that occurred when changing the propagation method for a Neo field with no blocks
- Fixed an error that could occur when cloning block types, if Neo's `blockTypeIconSelectMode` plugin setting is set to `'path'`

## 4.0.6 - 2024-02-23

Expand Down
2 changes: 1 addition & 1 deletion src/controllers/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private function _renderBlockType(): array
$newBlockType->ignorePermissions = $settings['ignorePermissions'];
$newBlockType->description = $settings['description'] ?? '';
$newBlockType->iconFilename = $settings['iconFilename'] ?? '';
$newBlockType->iconId = $settings['iconId'];
$newBlockType->iconId = $settings['iconId'] ?? null;
$newBlockType->minBlocks = (int)$settings['minBlocks'];
$newBlockType->maxBlocks = (int)$settings['maxBlocks'];
$newBlockType->minSiblingBlocks = (int)$settings['minSiblingBlocks'];
Expand Down

0 comments on commit 4e2b93e

Please sign in to comment.