90429[BUGFIX] Catch PHP warning when FlexForm select items config is empty
Commit message
Review
-
Code review CR +2 Done
- Oli Bartsch +2
- Stefan Bürk +1
- Christian Kuhn +1
-
Verified V +2 Done
- Oli Bartsch +2
- Stefan Bürk +1
- core-ci +1 CI
Issues 1
Files 2
Review log 1215
-
Christian Weiske uploaded patch set 1 08/18/25, 05:58
-
core-ci voted on patch set 1 V +1 08/18/25, 06:05 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/83556
-
Stefan Bürk commented on patch set 1 08/18/25, 07:31
Fixing this in the flexform handling to avoid setting the string with empty spaces was not an option ? That's the root cause of the issue and may also have impact at other places. However, hardening it during the TCA migration okay. -
Oli Bartsch commented on patch set 1 08/18/25, 07:38
TcaMigration.php:1391I suggest we either skip this on string completely or in case we migrate this to an array, we should add corresponding message to inform the dev about the necessary changes. -
Christian Weiske uploaded patch set 2
V +108/18/25, 08:12 -
Christian Weiske commented on patch set 1 08/18/25, 08:12
Let's skip strings instead of modifying them.Reply
Flexform XML is parsed with `GeneralUtility::xml2array` which converts tags with string content to strings, and tags with subtags to arrays. It does not know anything about specific meaning of 'items'.TcaMigration.php:1391ReplyAcknowledged -
core-ci voted on patch set 2 V +1 08/18/25, 08:19 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/83557
-
Oliver Klee voted on patch set 2 CR +1 V +1 08/18/25, 08:31
-
Oli Bartsch updated the commit message in patch set 3
CR +1V +108/18/25, 08:32 -
Oli Bartsch voted on patch set 3 CR +1 V +1 08/18/25, 08:32
-
core-ci voted on patch set 3 V +1 08/18/25, 08:39 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/83558
-
Stefan Bürk commented on patch set 3 CR +1 V +1 08/18/25, 08:48
Reply
Acknowledged -
Christian Kuhn voted on patch set 3 CR +1 08/18/25, 09:23
-
Oli Bartsch voted on patch set 3 CR +2 V +2 08/18/25, 11:47
-
Oli Bartsch merged patch set 4 08/18/25, 11:47