-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
An exception has been thrown during the rendering of a template ("Feature not implemented: an embedded admin cannot have subclass"). #6904
Comments
I find nothing related between 3.86 and 3.87. Is it possible for you to do a bisect in order to find the commit with the bug ? |
It still doesn't work. I cannot bisect commit as a composer dependencies and the project is private, I might take the time to create a full project just to replicate the bug but this will take probably take some time. |
HI @mpoiriert, without any extra information, I'm force to close the issue. The code throwing the exception is
I recommend you to debug this in order to know why you have an active subclass
|
@VincentLanglet I found the source of the bug. It was introduce with this commit Probably was working on version 3 because of some flow but now it does fail. This route is this one sonata_admin_retrieve_autocomplete_items and since it's only use in that specific case (model auto complete) we should simply remove the subclass parameter. Same as #7843 it's only happening on creation page (since the parameter will not be there otherwise. I can make a quick PR to remove it. I'll check for automation test, first if it's failing if I remove it and will see from there. |
Environment
Sonata packages
show
Symfony packages
show
PHP version
Subject
Minimal repository with the bug
Steps to reproduce
I have an admin with inheritance and embedded admin. The embedded admin don't have sub class.
I think the check is now done on the main admin and not the embedded admin.
This bug was introduce int version 3.87.0 (I have check and it's working on version 3.86.0 and still don't work in latest tag)
Expected results
No error
Actual results
I am getting this error:
An exception has been thrown during the rendering of a template ("Feature not implemented: an embedded admin cannot have subclass").
The text was updated successfully, but these errors were encountered: