Skip to content

Commit

Permalink
FIX: Use default page TCA if no ui-config is present
Browse files Browse the repository at this point in the history
c4ll-m3-j4ck committed Aug 15, 2023
1 parent e98383d commit 17b3486
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Classes/Loader/DoktypeLoader.php
Original file line number Diff line number Diff line change
@@ -166,7 +166,7 @@ public function loadTcaOverrides(): void
'pages','doktype', [$title, $doktype, $iconIdentifierDefault], '1', 'before'
);

$showItem = '';
$showItem = $GLOBALS['TCA']['pages']['types'][PageRepository::DOKTYPE_DEFAULT]['showitem'];


if (array_key_exists('ui', $configuration)) {
@@ -175,7 +175,9 @@ public function loadTcaOverrides(): void
$showitemConfiguration = $this->tcaShowitemHelper->parseShowitemConfig($identifier, $configuration['ui']['tabs']);

if ($keepExisting) {
$showItem = $GLOBALS['TCA']['pages']['types'][PageRepository::DOKTYPE_DEFAULT]['showitem'] . ', ' . $showitemConfiguration;
$showItem .= ',' . $showitemConfiguration;
} else {
$showItem = $showitemConfiguration;
}
}

0 comments on commit 17b3486

Please sign in to comment.