Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix form one-to-many tabs translations #6183

Merged
merged 1 commit into from
Jul 3, 2020

Conversation

EmmanuelVella
Copy link
Contributor

@EmmanuelVella EmmanuelVella commented Jul 3, 2020

Subject

Currently, the tabs in a one-to-many form are not correctly translated. The groups name is used, instead of the label (like in the other templates). This is wrong especially when using the translate_group_label: true option.

This is BC because the label contains the name by default (see https://github.com/sonata-project/SonataAdminBundle/blob/3.x/src/Mapper/BaseGroupedMapper.php#L79).

I am targeting this branch, because it's a BC bug fix.

Changelog

### Fixed
- Fix form one-to-many tabs translations

Before
image

After
image

core23
core23 previously approved these changes Jul 3, 2020
@core23 core23 added the patch label Jul 3, 2020
@jordisala1991 jordisala1991 merged commit 2267caf into sonata-project:3.x Jul 3, 2020
@jordisala1991
Copy link
Member

Thank you @EmmanuelVella

@EmmanuelVella EmmanuelVella deleted the patch-26 branch July 3, 2020 21:47
@EmmanuelVella
Copy link
Contributor Author

Thank you all !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants