Actions
Bug #104858
closedSiteSettings->get() does return values for nested arrays in subproperties
Status:
Closed
Priority:
Should have
Assignee:
Category:
Site Handling, Site Sets & Routing
Target version:
Start date:
2024-09-09
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
A setting defined via Configuration/Sets/Set1/settings.definitions.yaml
that contains at least one dot in the settings key
settings: foo.bar: type: stringlist default: ['a', 'b'] label: FooBar
Can not be obtained by $settings->get('foo.bar')
, because array-flattening does only allow access to 'foo.bar.0'
and 'foo.bar.1'
, but not to the array 'foo.bar'
.
This is because this value is serialized as
foo: bar: - a - b
The SiteSettings object should maintain an access for explicitly defined keys, and provide the values as well.
Actions