Я добавил блоки cms в конфигурацию системы magento 2.3.4 при сохранении конфигурации. Я получаю ошибку Something went wrong while saving this configuration: Notice: Array to string conversion in vendor/magento/framework/App/Config/Value.php on line 100
. Но тот же код работает нормально в более низкой версии magento 2.3.3.
<group id="block_footer" translate="label" type="text" sortOrder="45" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Bottom Block Configuration</label>
<field id="use_cms_block_bottom" translate="label" type="select" sortOrder="35" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_class>separator-bottom</frontend_class>
<label>Use CMS Block In Bottom</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="cms_block_bottom" translate="label comment" type="select" sortOrder="45" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Select CMS Block</label>
<source_model>Magento\Cms\Model\Config\Source\Block</source_model>
<comment>You can create new CMS block in "Content > Elements > Blocks"</comment>
<depends>
<field id="use_cms_block_bottom">1</field>
</depends>
</field>
</group>