From 6fceb5e7ad9269f0f5dd62757d0103f8aab7bf41 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 23 Nov 2016 15:15:43 +0100 Subject: [PATCH] don't access view for forms used in custom views --- Form/Type/EasyAdminFormType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;