Skip to content
Snippets Groups Projects
Commit 90574443 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[BUGFIX] Fix PHP 8 array access in BackendUtility

When the TCA colon feature for ['ctrl']['type'] is
used in inline parent child relations, the target
record may not yet be persisted and getRecord()
returns null.

This triggers a PHP 8 array warning.
Sanitize this access.

Resolves: #97985
Releases: main, 11.5
Change-Id: If26e7aecdfc9504fbf1727813bc825de6522b9f9
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75217


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 51fd0575
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