[BUGFIX] Localization State does not properly sanitize and enrich 27/54427/2
authorOliver Hader <oliver@typo3.org>
Tue, 17 Oct 2017 20:59:31 +0000 (22:59 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 17 Oct 2017 23:14:38 +0000 (01:14 +0200)
commit7316340f64beebc21a1b9674335678e2c4518be1
treeaccb1a4f033e16b8fcd760f17523a90ba8042dc9
parentdb43efd8d7d3cd87651910628a21f8320ad7a6c4
[BUGFIX] Localization State does not properly sanitize and enrich

The Localization State object has an incomplete assignment in the
constructor - sanitize processing is overridden by enrich processing,
however both should be combined instead.

The current side-effects were, that
* localization state could contain fields that were not defined in TCA
  having support for the `allowLanguageSynchronization` setting
* state values different than `custom`, `source` or `parent` have not
  been overridden by the default `parent` value

Resolves: #82793
Releases: 8.7, master
Change-Id: I25e794736df216b17a5b8de3bc5203bd18ee9694
Reviewed-on: https://review.typo3.org/54427
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/DataHandling/Localization/State.php
typo3/sysext/core/Tests/Unit/DataHandling/Localization/StateTest.php [new file with mode: 0644]