Project

General

Profile

Actions

Bug #92685

closed

Select with multiple values in site configuration not stored correctly

Added by Chris Müller about 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2020-10-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Using a select type with renderTyp selectCheckBox in the sites configuration:

'myOptions' => [
    'label' => 'Options',
    'config' => [
        'type' => 'select',
        'renderType' => 'selectCheckBox',
        'items' => [
            ['Option A', 'option_a'],
            ['Option B', 'option_b'],
            ['Option C', 'option_c'],
            ['Option D', 'option_d'],
        ],
    ],
],

The options are stored in config.yaml as an array, e.g.:

myOptions:
  - option_a
  - option_b

But after saving the options are not activated in the form anymore. This is due the fact that for the renderTypes selectSingleBox, selectCheckBox and selectMultipleSideBySide the selected items are expected as a comma-separated list. So correct would be instead:

myOptions: 'option_a,option_b'

Files

siteconfiguration_select.png (8.36 KB) siteconfiguration_select.png Chris Müller, 2020-10-22 19:09
Actions #1

Updated by Gerrit Code Review about 4 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66256

Actions #2

Updated by Gerrit Code Review over 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66256

Actions #3

Updated by Gerrit Code Review over 3 years ago

Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68639

Actions #4

Updated by Chris Müller over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF