remove dump statement

This commit is contained in:
Julien Fastré 2017-04-18 22:18:59 +02:00
parent 0fec548ff2
commit 6cdccb1553
3 changed files with 2 additions and 4 deletions

View File

@ -91,7 +91,7 @@ class Configuration implements ConfigurationInterface
->defaultValue('visible') ->defaultValue('visible')
->info("If the field $key must be shown") ->info("If the field $key must be shown")
->end(); ->end();
//var_dump($node);
return $node; return $node;
} }
} }

View File

@ -129,12 +129,11 @@ class ListPerson implements ListInterface, ExportElementValidatedInterface
public function validateForm($data, ExecutionContextInterface $context) public function validateForm($data, ExecutionContextInterface $context)
{ {
dump($data);
// get the field starting with address_ // get the field starting with address_
$addressFields = array_filter(function($el) { $addressFields = array_filter(function($el) {
return substr($el, 0, 8) === 'address_'; return substr($el, 0, 8) === 'address_';
}, $this->fields); }, $this->fields);
dump($data['address_date']);
// check if there is one field starting with address in data // check if there is one field starting with address in data
if (count(array_intersect($data['fields'], $addressFields)) > 0) { if (count(array_intersect($data['fields'], $addressFields)) > 0) {
// if a field address is checked, the date must not be empty // if a field address is checked, the date must not be empty

View File

@ -89,7 +89,6 @@ class BirthdateFilter implements FilterInterface, ExportElementValidatedInterfac
{ {
$date_from = $data['date_from']; $date_from = $data['date_from'];
$date_to = $data['date_to']; $date_to = $data['date_to'];
dump($date_from, $date_to);
if ($date_from === null) { if ($date_from === null) {
$context->buildViolation('The "date from" should not be empty') $context->buildViolation('The "date from" should not be empty')