From 303666b30d85e5fa85438225260ec3d144550640 Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 25 May 2023 09:50:25 +0200 Subject: [PATCH] Feature: add thirdParty choice in docgen accperiodworkevaluation context - clean code --- .../DocGenerator/AccompanyingPeriodWorkEvaluationContext.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodWorkEvaluationContext.php b/src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodWorkEvaluationContext.php index 1c33c9323..efd687ec9 100644 --- a/src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodWorkEvaluationContext.php +++ b/src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodWorkEvaluationContext.php @@ -120,9 +120,6 @@ class AccompanyingPeriodWorkEvaluationContext implements { $this->accompanyingPeriodWorkContext->buildPublicForm($builder, $template, $entity->getAccompanyingPeriodWork()); - //TODO add more choices to thirdParty form - //Question: replace the form or just add more choices to form 'thirdParty'? - $thirdParties = array_merge( array_filter($entity->getAccompanyingPeriodWork()->getThirdParties()->toArray()), array_filter([$entity->getAccompanyingPeriodWork()->getHandlingThierParty()]), @@ -134,7 +131,6 @@ class AccompanyingPeriodWorkEvaluationContext implements ) ); - dump($thirdParties); $options = $template->getOptions(); if ($options['thirdParty'] ?? false) { @@ -166,7 +162,6 @@ class AccompanyingPeriodWorkEvaluationContext implements AbstractNormalizer::GROUPS => ['docgen:read'], ] ); - dump($data); return $data; }