Skip to content

Commit

Permalink
[BUGFIX] Fix collection resolving for pages
Browse files Browse the repository at this point in the history
Fixes: #634
  • Loading branch information
nhovratov committed Jul 9, 2024
1 parent 65f3e61 commit 44cc9fc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Classes/Helper/InlineHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,16 @@ public function addFilesToData(array &$data, string $table = 'tt_content'): void
*/
public function addIrreToData(array &$data, string $table = 'tt_content', string $cType = '', string $originalTable = 'tt_content'): void
{
if ($cType === '') {
$cType = (string)($data['CType'] ?? '');
}
if ($cType === '') {
return;
}
if (!$this->tableDefinitionCollection->hasTable($table)) {
return;
}

if ($table === 'tt_content') {
if ($cType === '') {
$cType = (string)($data['CType'] ?? '');
}
if ($cType === '') {
return;
}
$element = $this->tableDefinitionCollection->loadElement($table, AffixUtility::removeCTypePrefix($cType));
$elementFields = $element->elementDefinition->columns ?? [];
} elseif ($table === 'pages') {
Expand Down

0 comments on commit 44cc9fc

Please sign in to comment.