[BUGFIX] Handle flexform in BU::getProcessedValue() only if not null
The contents of a field of type `flex` may be NULL if the field is empty. `BackendUtility::getProcessedValue()` handles the content of such `flex` fields now only if the value is an actual string to solve deprecations related to PHP 8.1. In the same run, the content is trimmed to get rid of lots of empty lines caused by multiline XML data. Resolves: #97297 Resolves: #98595 Releases: main, 11.5 Change-Id: I4261d16bfa819fd1151bbe6905b97f2571701fee Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76125 Tested-by:core-ci <typo3@b13.com> Tested-by:
Oliver Klee <typo3-coding@oliverklee.de> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Oliver Klee <typo3-coding@oliverklee.de> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- Build/phpstan/phpstan-baseline.neon 0 additions, 15 deletionsBuild/phpstan/phpstan-baseline.neon
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 4 additions, 2 deletionstypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php 67 additions, 0 deletions.../sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php
Please register or sign in to comment