Project

General

Profile

Actions

Bug #102904

closed

IRRE exception if child record has not foreign_table

Added by Franz Holzinger 10 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2024-01-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
irre
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

When I create a child record for an IRRE element of the parent table, then an exception is thrown.

*'Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Warning: Undefined array key "foreign_table" in /var/www/html/develop12/dev12/vendor/typo3/cms-backend/Classes/Controller/FormInlineAjaxController.php line 123 *

https://github.com/franzholz/party/blob/master/Configuration/TCA/tx_party_parties.php

When a new electronic_address_identifier is generated, then the child table tx_party_electronic_address_identifier_usages is used for this. The TCA of this child table is

'electronic_address_identifier' => [
'exclude' => 1,
'label' => 'LLL:EXT:party/Resources/Private/Language/locallang_db.xlf:tx_party_electronic_address_identifier_usages.electronic_address_identifier',
'config' => [
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'tx_party_electronic_address_identifiers',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
'default' => 0,
],

According to the docs there is no requirement for a 'foreign_table' for a type = 'group'.

See

https://docs.typo3.org/m/typo3/reference-tca/12.4/en-us/ColumnsConfig/Type/Group/Properties/ForeignTable.html

Actions

Also available in: Atom PDF