mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 22:04:23 +00:00
fix error in loader person
This commit is contained in:
parent
4513ef35f6
commit
c27329820e
@ -71,6 +71,10 @@ class PersonChoiceLoader implements ChoiceLoaderInterface
|
|||||||
$choices = [];
|
$choices = [];
|
||||||
|
|
||||||
foreach($values as $value) {
|
foreach($values as $value) {
|
||||||
|
if (empty($value)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$person = $this->personRepository->find($value);
|
$person = $this->personRepository->find($value);
|
||||||
|
|
||||||
if ($this->hasCenterFilter() &&
|
if ($this->hasCenterFilter() &&
|
||||||
@ -85,7 +89,7 @@ class PersonChoiceLoader implements ChoiceLoaderInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function loadValuesForChoices(array $choices, $value = null)
|
public function loadValuesForChoices(array $choices, $value = null)
|
||||||
{
|
{dump($choices);
|
||||||
$values = [];
|
$values = [];
|
||||||
|
|
||||||
foreach ($choices as $choice) {
|
foreach ($choices as $choice) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user