diff --git a/CHANGELOG.md b/CHANGELOG.md index 0935b714..0038c383 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/controllers/Configurator.php b/src/controllers/Configurator.php index b73c9255..34628c5f 100644 --- a/src/controllers/Configurator.php +++ b/src/controllers/Configurator.php @@ -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'];