Skip to content
Snippets Groups Projects
Commit db6df19d authored by Nikita Hovratov's avatar Nikita Hovratov
Browse files

[BUGFIX] Ensure items array in DataHandler checkValue methods

It is possible that TCA items array is not set in DataHandler if

1. items is defined through types/*/columnsOverrides
2. DataHandler is triggered with context of another record type
   (e.g. by a translation request)

This patch ensures we are always dealing with an array for items. Also,
when passing it as parameter to
`ItemProcessingService->getProcessingItems`.

Resolves: #103472
Releases: main, 12.4
Change-Id: I364841982b7c2913e339bf5a504d811b3e050049
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83575


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent 04b43e42
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment