Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[BUGFIX] Prevent undefined array key warnings in FormEngine
Resolves: #97475
Releases: 11.5
Change-Id: Iaf7dfb8b0ffde2dae73a75fb106b3433bde46c4a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74432
Tested-by: core-ci <typo3@b13.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Jochen <rothjochen@gmail.com>
Tested-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Henrik Elsner <helsner@dfau.de>
Reviewed-by: Jochen <rothjochen@gmail.com>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
  • Loading branch information
o-ba committed Apr 26, 2022
1 parent f96a1d9 commit 15cae09
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -35,9 +35,8 @@ public function addData(array $result)
{
foreach ($result['processedTca']['columns'] as $fieldName => $fieldConfig) {
// Placeholders are only valid for input and text type fields
if (
($fieldConfig['config']['type'] !== 'input' && $fieldConfig['config']['type'] !== 'text')
|| !isset($fieldConfig['config']['placeholder'])
if (!isset($fieldConfig['config']['placeholder'], $fieldConfig['config']['type'])
|| ($fieldConfig['config']['type'] !== 'input' && $fieldConfig['config']['type'] !== 'text')
) {
continue;
}
Expand Down

0 comments on commit 15cae09

Please sign in to comment.