From 6cdccb1553a72f4d749d2a507c1fc1625631f4ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 18 Apr 2017 22:18:59 +0200 Subject: [PATCH] remove dump statement --- DependencyInjection/Configuration.php | 2 +- Export/Export/ListPerson.php | 3 +-- Export/Filter/BirthdateFilter.php | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 8a935b8b1..8b4c43f7c 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -91,7 +91,7 @@ class Configuration implements ConfigurationInterface ->defaultValue('visible') ->info("If the field $key must be shown") ->end(); - //var_dump($node); + return $node; } } diff --git a/Export/Export/ListPerson.php b/Export/Export/ListPerson.php index bec4244be..a5e90b2fa 100644 --- a/Export/Export/ListPerson.php +++ b/Export/Export/ListPerson.php @@ -129,12 +129,11 @@ class ListPerson implements ListInterface, ExportElementValidatedInterface public function validateForm($data, ExecutionContextInterface $context) { - dump($data); // get the field starting with address_ $addressFields = array_filter(function($el) { return substr($el, 0, 8) === 'address_'; }, $this->fields); - dump($data['address_date']); + // check if there is one field starting with address in data if (count(array_intersect($data['fields'], $addressFields)) > 0) { // if a field address is checked, the date must not be empty diff --git a/Export/Filter/BirthdateFilter.php b/Export/Filter/BirthdateFilter.php index 084b9ac8d..234d6bd3e 100644 --- a/Export/Filter/BirthdateFilter.php +++ b/Export/Filter/BirthdateFilter.php @@ -89,7 +89,6 @@ class BirthdateFilter implements FilterInterface, ExportElementValidatedInterfac { $date_from = $data['date_from']; $date_to = $data['date_to']; - dump($date_from, $date_to); if ($date_from === null) { $context->buildViolation('The "date from" should not be empty')