You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
Since the class has direct inheritance, and here both the manage and edit methods are triggered in the same way by HttpKernel, passing the AdminContext should also work with minimal side effects.
Rewriting the edit method and its dependencies could ultimately work but is not a good solution.
Maybe something else is wrong and the section about linkToCrudAction could deserve more indications in the docs in how to correctly extend the base behavior of Crud Actions.
The text was updated successfully, but these errors were encountered:
Describe the bug
Extending (at least) the
edit
crud action doesn't seem to work in anAbstractCrudController
.To Reproduce
EasyAdmin v4.15.5
Following the documentation, configure a custom 'linkToCrudAction'
And declare the custom action to simply reuse the 'edit' action, even before making any changes
This triggers the error
in vendor/easycorp/easyadmin-bundle/src/Factory/ActionFactory.php (line 44)
in vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php -> processEntityActions (line 56)
in vendor/easycorp/easyadmin-bundle/src/Controller/AbstractCrudController.php -> processActions (line 220)
Expected behavior
Since the class has direct inheritance, and here both the
manage
andedit
methods are triggered in the same way byHttpKernel
, passing theAdminContext
should also work with minimal side effects.Rewriting the
edit
method and its dependencies could ultimately work but is not a good solution.Maybe something else is wrong and the section about
linkToCrudAction
could deserve more indications in the docs in how to correctly extend the base behavior of Crud Actions.The text was updated successfully, but these errors were encountered: