Bug #97461
closedPHP Warning: Undefined array key "transOrigPointerField"
100%
Description
Hi,
I've got some weird issues when I open a translated record that has a mix of translatable and non translatable inline records.
PHP Warning: Undefined array key "transOrigPointerField" in /typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php line 167
I had to change the following lines to get this to work.
File: public/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php
Line: 164
From: $fieldNameWithDefaultLanguageUid = $GLOBALS['TCA'][$childTableName]['ctrl']['transOrigPointerField'];
To: $fieldNameWithDefaultLanguageUid = $GLOBALS['TCA'][$childTableName]['ctrl']['transOrigPointerField'] ?? '';
and
Line: 180
From: $uidOfDefaultLanguageRecord = $localizedRecord[$fieldNameWithDefaultLanguageUid];
To: $uidOfDefaultLanguageRecord = $localizedRecord[$fieldNameWithDefaultLanguageUid] ?? 0;
Can anyone please look into this?
Thanks
Updated by Gerrit Code Review over 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74388
Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74388
Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74397
Updated by Oliver Bartsch over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1eccb6ac44de18066687aa1f1ae13e132922d07d.