fix error in loader person

This commit is contained in:
Julien Fastré 2018-08-29 23:49:41 +02:00
parent 4513ef35f6
commit c27329820e

View File

@ -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) {