Skip to content

Commit

Permalink
[BUGFIX] Avoid error on missing types in isRestructuringNeeded
Browse files Browse the repository at this point in the history
  • Loading branch information
nhovratov committed Dec 16, 2023
1 parent 04f9da7 commit 1a074e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Classes/Definition/TableDefinitionCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ public function isRestructuringNeeded(): bool
return false;
}
foreach ($element->columns as $fieldKey) {
$fieldType = $ttContentDefinition->tca->getField($fieldKey)->getFieldType();
$field = $ttContentDefinition->tca->getField($fieldKey);
if (!$field->hasFieldType($element->key)) {
continue;
}
$fieldType = $field->getFieldType($element->key);
if ($fieldType->canBeShared()) {
return true;
}
Expand Down

0 comments on commit 1a074e3

Please sign in to comment.