[Form] Fixed incorrect sorting in ChoiceList::getChoicesForValues
This commit is contained in:
parent
2cd246786d
commit
a60daffb47
@ -200,8 +200,8 @@ class ChoiceList implements ChoiceListInterface
|
|||||||
|
|
||||||
$choices = array();
|
$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) {
|
if ($value === $givenValue) {
|
||||||
$choices[] = $this->choices[$i];
|
$choices[] = $this->choices[$i];
|
||||||
unset($values[$j]);
|
unset($values[$j]);
|
||||||
|
Reference in New Issue
Block a user