[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();
|
||||
|
||||
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]);
|
||||
|
Reference in New Issue
Block a user