diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ConfidentialFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ConfidentialFilter.php index 23286f941..3db60711d 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ConfidentialFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ConfidentialFilter.php @@ -16,11 +16,11 @@ class ConfidentialFilter implements FilterInterface 'is not confidential' => false, 'is confidential' => true, ]; - + private CONST DEFAULT_CHOICE = false; - + private TranslatorInterface $translator; - + public function __construct(TranslatorInterface $translator) { $this->translator = $translator; @@ -44,14 +44,14 @@ class ConfidentialFilter implements FilterInterface public function describeAction($data, $format = 'string'): array { - dump($data, self::CHOICES); + //dump($data, self::CHOICES); foreach (self::CHOICES as $k => $v) { if ($v === $data['accepted_confidentials']) { $choice = $k; } } - + return [ 'Filtered by confidential: only %confidential%', [ '%confidential%' => $this->translator->trans($choice) @@ -84,4 +84,4 @@ class ConfidentialFilter implements FilterInterface return Declarations::ACP_TYPE; } -} \ No newline at end of file +} diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/SocialWorkTypeFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/SocialWorkTypeFilter.php index efd8c93af..7c9d61525 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/SocialWorkTypeFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/SocialWorkTypeFilter.php @@ -71,7 +71,7 @@ class SocialWorkTypeFilter implements FilterInterface $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($refreshGoals) { $data = $event->getData(); - dump($data); + //dump($data); $refreshGoals($event->getForm(), $data); });