Skip to content

Commit 8adb4f1

Browse files
committed
bug symfony#14602 Fix wrong key name in FormType options (matthieudanet)
This PR was merged into the 5.1 branch. Discussion ---------- Fix wrong key name in FormType options Fix wrong key name in FormType options Commits ------- 0723043 Fix wrong key name
2 parents 588f5d1 + 0723043 commit 8adb4f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/forms/types/options/choice_attr.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ If an array, the keys of the ``choices`` array must be used as keys::
4949

5050
// ...
5151
$builder->add('choices', ChoiceType::class, [
52-
'choice_label' => ChoiceList::attr($this, function (?Category $category) {
52+
'choice_attr' => ChoiceList::attr($this, function (?Category $category) {
5353
return $category ? ['data-uuid' => $category->getUuid()] : [];
5454
}),
5555
]);

0 commit comments

Comments
 (0)