From a60daffb47d0562a67a2908576d5a57546a08296 Mon Sep 17 00:00:00 2001 From: grizlik Date: Fri, 3 Feb 2012 14:21:24 +0400 Subject: [PATCH] [Form] Fixed incorrect sorting in ChoiceList::getChoicesForValues --- .../Component/Form/Extension/Core/ChoiceList/ChoiceList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]);