-
-
Notifications
You must be signed in to change notification settings - Fork 489
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 UserAdmin breadcrumb name #1533
Fix UserAdmin breadcrumb name #1533
Conversation
I think we might want to investigate a bit. On Sonata 3 (With UserBundle 4) this problem didn't happened. Do you know if something changes between Sonata 3 and 4 that might be related @VincentLanglet ? |
Dunno. But looking at the fix, it would meant that the classname label is not correctly set.
and getClass
It would be interesting to dump the value to understand where is the issue. The modelClass is set here @aerrasti What's the name of your user class ? |
Hey I just checked and it happens the same with Sonata 3, so it's not something related to the upgrade. |
What's the user class you used ? Do I suppose correctly the origin of the bug ? |
To me the problem is that, by default we add some translations for the breadcrumbs and all. But at the end, it depends if the class defined by the developer is called |
Yes, that's why the fix is correct. Should it be a minor with a upgrade note "be careful" ? |
Yes, we can consider it a minor. At worst, people will see their translations changed and used now the default of Sonata, which TBH is not that big of a deal, but we can give them the hint. |
Subject
The breadcrumb builder is using a classnameLabel that doesn't match the translation
breadcrumb.link_user_list
.Before
After
I am targeting this branch, because the error is in the 5.x branch.
Changelog