mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 18:14:59 +00:00
code fix for PersonContext
This commit is contained in:
@@ -222,7 +222,6 @@ final class DocGeneratorTemplateController extends AbstractController
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($isTest) {
|
if ($isTest) {
|
||||||
$builder->add('test_file', FileType::class, [
|
$builder->add('test_file', FileType::class, [
|
||||||
'label' => 'Template file',
|
'label' => 'Template file',
|
||||||
|
@@ -114,7 +114,7 @@ class PersonContext implements DocGeneratorContextWithAdminFormInterface
|
|||||||
$data = array_merge($data, $this->baseContextData->getData());
|
$data = array_merge($data, $this->baseContextData->getData());
|
||||||
$data['person'] = $this->normalizer->normalize($entity, 'docgen', [
|
$data['person'] = $this->normalizer->normalize($entity, 'docgen', [
|
||||||
'docgen:expects' => Person::class,
|
'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;
|
return $data;
|
||||||
|
Reference in New Issue
Block a user