8000 Merge branch '7.2' into 7.3 · symfony/form@7ef449a · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ef449a

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: [Form] Use duplicate_preferred_choices to set value of ChoiceType
2 parents 20a470e + 81c5d46 commit 7ef449a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Extension/Core/Type/ChoiceType.php

Lines changed: 2 additions & 0 deletions
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)
0