mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-15 01:20:59 +00:00
BUGFIX: [2.0] [AdminBundle] add label option too CustomerType form class to load translations (#18483)
| Q | A |-----------------|----- | Branch? | 2.1 <!-- see the comment below --> | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no <!-- don't forget to update the UPGRADE-*.md file --> | Related tickets | fixes #18482, partially #Y, mentioned in #Z | License | MIT As described in #18482 i added the `label` key too the options for the `firstName` and `lastName` childs of the CustomerType form class so that the translations for `sylius.form.customer.first_name` / `sylius.form.customer.last_name` are correctly displayed again when creating/updating a customer in the sylius backend.
This commit is contained in:
commit
5154e37acc
1 changed files with 2 additions and 0 deletions
|
|
@ -26,9 +26,11 @@ final class CustomerType extends AbstractType
|
|||
{
|
||||
$builder
|
||||
->add('firstName', TextType::class, [
|
||||
'label' => 'sylius.form.customer.first_name',
|
||||
'required' => false,
|
||||
])
|
||||
->add('lastName', TextType::class, [
|
||||
'label' => 'sylius.form.customer.last_name',
|
||||
'required' => false,
|
||||
])
|
||||
->add('user', ShopUserType::class, [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue