Project

General

Profile

Actions

Bug #97461

closed

PHP Warning: Undefined array key "transOrigPointerField"

Added by JAKOTA Design Group GmbH over 2 years ago. Updated about 2 years 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 #1

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

Actions #2

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

Actions #3

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

Actions #4

Updated by Oliver Bartsch over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF