Issue Bug Closed

#97461PHP Warning: Undefined array key "transOrigPointerField"

JAKOTA Design Group GmbH 04/23/22, 16:52 updated 10/04/22, 14:19

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

Reviews 2