Details
-
Bug
-
Resolution: Invalid
-
High
-
None
-
3.0.0-beta4, 2.5.8
-
None
Description
Hiding default block with YAML works well for most blocks, but the following don't work:
- Code
- Content List
- Content Scheduler
- Text
When you hide one of these they crash with the following error:
Notice: Undefined index: thumbnail Symfony\Component\Debug\Exception\ContextErrorException
Steps to reproduce:
- Install and run eZ Platform EE
- Open front page in page view and edit
- Observe working page builder view
- Modify app/config/ezplatform.yml to include:
ezplatform_page_fieldtype: blocks: content_list: visible: false text: visible: false content_scheduler: visible: false code: visible: false
- Reload page builder editing view
- Observe crash
ContextErrorException
HTTP 500 Internal Server Error
Notice: Undefined index: thumbnail
in vendor/ezsystems/ezplatform-page-fieldtype/src/lib/FieldType/Page/Block/Definition/BlockDefinitionFactory.php (line 88)
BlockDefinitionFactory->getBlockDefinition('code')
in vendor/ezsystems/ezplatform-page-fieldtype/src/lib/FieldType/LandingPage/Converter/BlockDefinitionConverter.php (line 38)
BlockDefinitionConverter->toHash()
in vendor/ezsystems/ezplatform-page-fieldtype/src/lib/ApplicationConfig/Providers/BlockDefinitions.php (line 31)
BlockDefinitions->getConfig()
in vendor/ezsystems/ezplatform-page-builder/src/bundle/Controller/PageController.php (line 703)
...