Skip to content

Commit

Permalink
Hide field from Configurator
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandar Bozhinov committed Sep 15, 2023
1 parent 0435cd8 commit b699377
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Factory/FieldFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ public function processFields(EntityDto $entityDto, FieldCollection $fields): vo
$configurator->configure($fieldDto, $entityDto, $context);
}

// check again if the field is displayed because this can change in the configurators
if (null !== $currentPage && false === $fieldDto->isDisplayedOn($currentPage)) {
$fields->unset($fieldDto);
continue;
}

foreach ($fieldDto->getFormThemes() as $formThemePath) {
$context?->getCrud()?->addFormTheme($formThemePath);
}
Expand Down

0 comments on commit b699377

Please sign in to comment.