[Form] Fixed double choice fixing
This commit is contained in:
parent
f533ef0e1b
commit
18f92cd331
@ -283,7 +283,7 @@ class ChoiceList implements ChoiceListInterface
|
|||||||
|
|
||||||
foreach ($this->choices as $i => $choice) {
|
foreach ($this->choices as $i => $choice) {
|
||||||
foreach ($choices as $j => $givenChoice) {
|
foreach ($choices as $j => $givenChoice) {
|
||||||
if ($choice === $this->fixChoice($givenChoice)) {
|
if ($choice === $givenChoice) {
|
||||||
$indices[] = $i;
|
$indices[] = $i;
|
||||||
unset($choices[$j]);
|
unset($choices[$j]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user