From af3b761208f39c3f5f29a12aa512c80e21ac8403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 8 Mar 2022 14:41:25 +0100 Subject: [PATCH] evaluationWorkDocument: fill title with document is generated --- .../DocGenerator/AccompanyingPeriodWorkEvaluationContext.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodWorkEvaluationContext.php b/src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodWorkEvaluationContext.php index 918b68dc1..90712c64d 100644 --- a/src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodWorkEvaluationContext.php +++ b/src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodWorkEvaluationContext.php @@ -179,7 +179,8 @@ class AccompanyingPeriodWorkEvaluationContext implements $doc = new AccompanyingPeriodWorkEvaluationDocument(); $doc->setStoredObject($storedObject) ->setAccompanyingPeriodWorkEvaluation($entity) - ->setTemplate($template); + ->setTemplate($template) + ->setTitle($this->translatableStringHelper->localize($template->getName())); $this->em->persist($doc); } }