diff --git a/Form/ChoiceLoader/PersonChoiceLoader.php b/Form/ChoiceLoader/PersonChoiceLoader.php index 1c2ea9897..4ec41e7b5 100644 --- a/Form/ChoiceLoader/PersonChoiceLoader.php +++ b/Form/ChoiceLoader/PersonChoiceLoader.php @@ -71,6 +71,10 @@ class PersonChoiceLoader implements ChoiceLoaderInterface $choices = []; foreach($values as $value) { + if (empty($value)) { + continue; + } + $person = $this->personRepository->find($value); if ($this->hasCenterFilter() && @@ -85,7 +89,7 @@ class PersonChoiceLoader implements ChoiceLoaderInterface } public function loadValuesForChoices(array $choices, $value = null) - { + {dump($choices); $values = []; foreach ($choices as $choice) {