Skip to content

Commit

Permalink
don't access view for forms used in custom views
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Nov 23, 2016
1 parent 58ad5e5 commit 6fceb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Form/Type/EasyAdminFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6fceb5e

Please sign in to comment.