Skip to content

Commit 81c5d46

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: [Form] Use duplicate_preferred_choices to set value of ChoiceType
2 parents 92c1e1f + 3929e2a commit 81c5d46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Extension/Core/Type/ChoiceType.php

+2
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ public function buildView(FormView $view, FormInterface $form, array $options):
275275

276276
public function finishView(FormView $view, FormInterface $form, array $options): void
277277
{
278+
$view->vars['duplicate_preferred_choices'] = $options['duplicate_preferred_choices'];
279+
278280
if ($options['expanded']) {
279281
// Radio buttons should have the same name as the parent
280282
$childName = $view->vars['full_name'];

0 commit comments

Comments
 (0)