Skip to content

Commit 689a0e2

Browse files
committed
[BUGFIX] Check if Schema exists
Fixes: #515
1 parent ed54f8f commit 689a0e2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Classes/Form/FormDataProvider/AllowedRecordTypesInSite.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public function __construct(
3737
public function addData(array $result): array
3838
{
3939
$tableName = $result['tableName'];
40+
if (!$this->tcaSchemaFactory->has($tableName)) {
41+
return $result;
42+
}
4043
$schema = $this->tcaSchemaFactory->get($tableName);
4144
if ($tableName !== $schema->getName()) {
4245
return $result;

0 commit comments

Comments
 (0)