Project

General

Profile

Actions

Bug #97461

closed

PHP Warning: Undefined array key "transOrigPointerField"

Added by JAKOTA Design Group GmbH about 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Start date:
2022-04-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions

Also available in: Atom PDF