diff --git a/Form/Type/EasyAdminFormType.php b/Form/Type/EasyAdminFormType.php index f240393eec..1ba9538501 100644 --- a/Form/Type/EasyAdminFormType.php +++ b/Form/Type/EasyAdminFormType.php @@ -54,7 +54,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) $entity = $options['entity']; $view = $options['view']; $entityConfig = $this->configManager->getEntityConfig($entity); - $entityProperties = $entityConfig[$view]['fields']; + $entityProperties = isset($entityConfig[$view]['fields']) ? $entityConfig[$view]['fields'] : array(); $formGroups = array(); $currentFormGroup = null;