#107172Own selectMultipleSideBySide in site configuration
Description
Hi,
there currently seems to be a problem when I want to add a selectMultipleSideBySide select to the site configuration.
Rendering the available options works.
When saving after selecting one or more options, these are also successfully written to config.yaml:
test:
- bar
- bar2
After saving, however, this selection is not displayed in the left column of the „Selected Items“.
*Example:*
Configuration/SiteConfiguration/Overrides/site.php
$GLOBALS['SiteConfiguration']['site']['columns']['test'] = [
'label' => 'test',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'items' => [
['label' => 'foo', 'value' => 'bar'],
['label' => 'foo2', 'value' => 'bar2'],
],
],
];
The selection is displayed correctly if I have the selection (as before?!) not as an array in the YAML, but as a string.
Like:
test: 'bar,bar2'
But then I get the following error when saving. String <-> Array – Problem – Makes sense
TYPO3\CMS\Core\Configuration\Loader\YamlPlaceholderGuard::protectPlaceholders(): Argument #1 ($current) must be of type array, string given, called in /var/www/html/vendor/typo3/cms-core/Classes/Configuration/Loader/YamlPlaceholderGuard.php on line 66
Thanks!