diff --git a/src/Bundle/ChillDocGeneratorBundle/Controller/DocGeneratorTemplateController.php b/src/Bundle/ChillDocGeneratorBundle/Controller/DocGeneratorTemplateController.php index d332f11c2..000fcb03a 100644 --- a/src/Bundle/ChillDocGeneratorBundle/Controller/DocGeneratorTemplateController.php +++ b/src/Bundle/ChillDocGeneratorBundle/Controller/DocGeneratorTemplateController.php @@ -222,7 +222,6 @@ final class DocGeneratorTemplateController extends AbstractController ); } - if ($isTest) { $builder->add('test_file', FileType::class, [ 'label' => 'Template file', diff --git a/src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContext.php b/src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContext.php index f84dd83c7..85ca1c161 100644 --- a/src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContext.php +++ b/src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContext.php @@ -114,7 +114,7 @@ class PersonContext implements DocGeneratorContextWithAdminFormInterface $data = array_merge($data, $this->baseContextData->getData()); $data['person'] = $this->normalizer->normalize($entity, 'docgen', [ 'docgen:expects' => Person::class, - 'groups' => ['docgen:read', 'docgen:person:with-household', 'docgen:person:with-relations'] + 'groups' => ['docgen:read', 'docgen:person:with-household', 'docgen:person:with-relations'], ]); return $data; @@ -176,4 +176,4 @@ class PersonContext implements DocGeneratorContextWithAdminFormInterface $this->em->persist($doc); } -} \ No newline at end of file +}