Bug #104858
closedSiteSettings->get() does return values for nested arrays in subproperties
100%
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.
Updated by Gerrit Code Review about 2 months ago
- Status changed from New to Under Review
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85924
Updated by Gerrit Code Review about 2 months ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85924
Updated by Gerrit Code Review about 2 months ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85924
Updated by Benjamin Franzke about 2 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 5d16076e40227aeaea587b897ff03407bd31b774.
Updated by Benjamin Franzke about 2 months ago
- Related to Bug #104945: SiteSettings cache is created over and over again, with every request added