[Form] Pass translation domain to the sub-forms when choice list is expanded
This commit is contained in:
parent
f842739d58
commit
0513eb1a4f
@ -63,11 +63,13 @@ class ChoiceType extends AbstractType
|
|||||||
// The user can check 0 or more checkboxes. If required
|
// The user can check 0 or more checkboxes. If required
|
||||||
// is true, he is required to check all of them.
|
// is true, he is required to check all of them.
|
||||||
'required' => false,
|
'required' => false,
|
||||||
|
'translation_domain' => $options['translation_domain'],
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$builder->add((string) $choice, 'radio', array(
|
$builder->add((string) $choice, 'radio', array(
|
||||||
'value' => $choice,
|
'value' => $choice,
|
||||||
'label' => $value,
|
'label' => $value,
|
||||||
|
'translation_domain' => $options['translation_domain'],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user