Skip to content

Commit

Permalink
[BUGFIX] Fix parentTable comparison in AdditionalContentService
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bülter committed Oct 31, 2024
1 parent 9708b76 commit 4303232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/AdditionalContentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ protected function getConfigs(string $cType, string $parentTable = ''): array
{
$configs = $this->processedAdditionalTableConfig[$cType] ?? $this->processedAdditionalTableConfig[$cType] ?? [];
foreach ($configs as $key => $config) {
if ($parentTable != '' && isset($config['parentTable']) && $config['parentTable'] !== $parentTable) {
if ($parentTable != ($config['parentTable'] ?? '')) {
unset($configs[$key]);
}
}
Expand Down

0 comments on commit 4303232

Please sign in to comment.