Actions
Bug #103025
closedUndefined array index for TCA without ctrl
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2024-02-02
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
I have an extension that uses a TCA configuration without the ctrl part because I don't need it. In my specific case I created a TCA configuration for the table "sys_registry":
<?php
declare(strict_types=1);
return [
'columns' => [
'entry_namespace' => [
'label' => 'LLL:EXT:registry_editor/Resources/Private/Language/locallang_tca.xlf:sys_registry.entry_namespace',
'config' => [
'type' => 'input',
'size' => 50,
'max' => 128,
],
],
'entry_key' => [
'label' => 'LLL:EXT:registry_editor/Resources/Private/Language/locallang_tca.xlf:sys_registry.entry_key',
'config' => [
'type' => 'input',
'size' => 50,
'max' => 128,
],
],
'entry_value' => [
'label' => 'LLL:EXT:registry_editor/Resources/Private/Language/locallang_tca.xlf:sys_registry.entry_value',
'config' => [
'type' => 'passthrough',
],
],
],
];
that I need to access the database via extbase but nothing more as the table should not be listed in the backend list view.
If I add:
'ctrl' => [],
my code breaks because then the core tries to add a "pid" to the query but that table doeesn't have a "pid".
Actions