Skip to content

Commit

Permalink
[BUGFIX] Early return in data processor if table does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
nhovratov committed Mar 23, 2024
1 parent edb41d4 commit 4b50543
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/DataProcessing/ContentBlocksDataProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public function process(
): array {
$this->relationResolver->setRequest($cObj->getRequest());
$table = $cObj->getCurrentTable();
if (!$this->tableDefinitionCollection->hasTable($table)) {
return $processedData;
}
$tableDefinition = $this->tableDefinitionCollection->getTable($table);
$contentTypeDefinition = ContentTypeResolver::resolve($tableDefinition, $processedData['data']);
if ($contentTypeDefinition === null) {
Expand Down

0 comments on commit 4b50543

Please sign in to comment.