Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/models/FieldLayoutTab.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@ public function setElements(array $elements): void
if (is_array($layoutElement)) {
try {
$layoutElement = $fieldsService->createLayoutElement($layoutElement);
if ($layoutElement instanceof CustomField) {
// check if the underlying field exists
// if not, it should be caught by FieldNotFoundException
// and not added to the tab's elements
$field = $layoutElement->getField();
}
} catch (FieldNotFoundException) {
// Skip quietly
continue;
Expand Down
Loading