90996[BUGFIX] Fix valuePicker for TCA type=link
Commit message
Review
-
Code review CR +2 Done
- Oli Bartsch +2
- Stefan Bürk +1
- Josua Vogel +1
- Benni Mack +1
-
Verified V +2 Done
- Oli Bartsch +2
- Stefan Bürk +1
- Josua Vogel +1
- Benni Mack +1
- core-ci +1 CI
Issues 2
Files 2
Review log 1214
-
Oli Bartsch uploaded patch set 1 10/10/25, 13:20
-
core-ci voted on patch set 1 V +1 10/10/25, 13:29 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/86405
-
Josua Vogel voted on patch set 1 CR +1 V +1 10/11/25, 14:56
-
Benjamin Franzke commented on patch set 1 CR -1 10/12/25, 13:05
-
Stefan Bürk commented on patch set 1 10/12/25, 17:47
LinkElement.php:187ReplyCannot find `link_6` from issue screenshot in core main/13.4 in styleguide, so I assume that was a "try" to add it. valuePicker transformation form 0/1 to label|value has been done for 14.0 only with https://review.typo3.org/c/Packages/TYPO3.CMS/+/88644 and I'd say that the LinkElement has been missed to adopt. Following that, this change should do this only for main and modify the changelog from the other change to complete it. The tca migration includes simply looks for "valuePicker" on a TCA element, and I guess we need to change that to narrow down to the tcaTypes supporting valuePicker ... @bo@cedev.de can you elaborate why you targeted the change also for 13.4 ? As @ben@bnf.dev already mentioned, for 13.4 this should not change to `label/value` and instead guard the access for 0/1 to avoid array key access errors instead (as bugfix). Due to the different approach, I would first do the "bugfix" albeit broken for v14 and doing the adoption/change to label/value as a dedicated followup fix/change extending the rest-file from the other change. -
Oli Bartsch updated the commit message in patch set 2
CR +1V +110/13/25, 05:51 -
Oli Bartsch commented on patch set 2 10/13/25, 05:55
LinkElement.php:187ReplyYou are completely right, this only targets 14.0. Sorry for the confusion. Migration is working fine that's why LinkElement did no longer work because 0/1 is transformed to label/value and LinkElement still accessed old integer key. This is now fixed. No need to update the rst as the types are not explicitly mentioned there. -
Josua Vogel voted on patch set 2 CR +1 V +1 10/13/25, 05:56
-
core-ci voted on patch set 2 V +1 10/13/25, 05:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/86511
-
Stefan Bürk voted on patch set 2 CR +1 V +1 10/13/25, 15:28
-
Benni Mack voted on patch set 2 CR +1 10/13/25, 15:30
-
Benni Mack voted on patch set 2 V +1 10/13/25, 15:31
-
Oli Bartsch voted on patch set 2 CR +2 V +2 10/13/25, 15:37
-
Oli Bartsch merged patch set 3 10/13/25, 15:37
LinkElement.php:187