mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +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) {
|
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;
|
||||||
@ -176,4 +176,4 @@ class PersonContext implements DocGeneratorContextWithAdminFormInterface
|
|||||||
|
|
||||||
$this->em->persist($doc);
|
$this->em->persist($doc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user