mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
code fix for PersonContext
This commit is contained in:
parent
d6d7edf25d
commit
4406016f82
@ -222,7 +222,6 @@ final class DocGeneratorTemplateController extends AbstractController
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
if ($isTest) {
|
||||
$builder->add('test_file', FileType::class, [
|
||||
'label' => 'Template file',
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user