#111056IRRE useCombination: form fails for collapsed child when the label is not the selector field
Description
Problem
An inline field with foreign_selector and appearance.useCombination fails to render the parent form when
- the intermediate table has a
ctrl.labelthat is not the selector field, and - the intermediate record is collapsed on page load.
Result: InvalidArgumentException: No $tableName given from FormDataCompiler, thrown in TcaInline::compileChildChild(). Before that, a PHP warning “Trying to access array offset on int” is raised in the same method.
Reason
For a collapsed inline child, TcaColumnsProcessShowitem skips the showitem fields and TcaColumnsRemoveUnused removes every column that is not needed for the record title. So the selector column is gone from processedTca and databaseRow[selector] stays a raw integer.
TcaInline::compileChildChild() then
- reads
$child['databaseRow'][selector][0]from an int (warning, value null), and - gets an empty table name from
getChildChildTableName(), because the selector config is missing.
Since #102904 (table name from processedTca) this is an exception. Before, the combination child was compiled with uid 0 and a “record could not be compiled” flash message was shown.
The problem is hidden in most setups because the selector field is usually also the label of the intermediate table (same in styleguide).
Reproduce
Use the fixture extension test_inline_use_combination from #81176 and set
$GLOBALS['TCA']['tx_testinlineusecombination_mm']['ctrl']['label'] = 'parent';
Then open the parent record in the backend.
Possible solution
Always process the selector column of the intermediate record when the parent uses foreign_selector with useCombination, e.g. in TcaColumnsProcessCommon:
if ($result['isInlineChild']
&& isset($result['inlineParentConfig']['foreign_selector'])
&& ($result['inlineParentConfig']['appearance']['useCombination'] ?? false)
) {
$result['columnsToProcess'][] = $result['inlineParentConfig']['foreign_selector'];
}
Related: #81176, #102904
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] IRRE useCombination: form fails for collapsed child when the label is not the selector field Resolves: #111056 Releases: main
Related issues 2
History 2
-
Wolfgang Klinger changed Related to #81176 <span data-processor="relativetime" data-value="2026-10-14T14:20:35+00:00" > 10/14/26, 14:20 </span>
-
Wolfgang Klinger changed Related to #102904 <span data-processor="relativetime" data-value="2026-10-14T14:20:46+00:00" > 10/14/26, 14:20 </span>