diff --git a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php index c9d09a4904..b9559074a2 100644 --- a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php +++ b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php @@ -200,8 +200,8 @@ class ChoiceList implements ChoiceListInterface $choices = array(); - foreach ($this->values as $i => $value) { - foreach ($values as $j => $givenValue) { + foreach ($values as $j => $givenValue) { + foreach ($this->values as $i => $value) { if ($value === $givenValue) { $choices[] = $this->choices[$i]; unset($values[$j]);