EasyAdminBundle
EasyAdminBundle copied to clipboard
Filters of the previous page shouldn't be passed to the next pages
Describe the bug The user is in the page with the following url:
https://localhost/backoffice?crudAction=detail&crudControllerFqcn=App%5CPresentation%5CController%5CAdmin%5CCRUD%5CMemberController&entityId=f253b225-7269-45e4-b148-0115c663fa07&filters%5Bstatus%5D%5Bcomparison%5D=!%3D&filters%5Bstatus%5D%5Bvalue%5D=RESIGNED
the user then navigates to:
https://localhost/backoffice?crudAction=new&crudControllerFqcn=App%5CPresentation%5CController%5CAdmin%5CCRUD%5CCertificateController&filters%5Bstatus%5D%5Bcomparison%5D=!%3D&filters%5Bstatus%5D%5Bvalue%5D=RESIGNED&memberId=f253b225-7269-45e4-b148-0115c663fa07
when the entity is generated then the application throws an error because the status
filter in the CertificateController
has a different type of filter called status
even if the name is the same
To Reproduce Steps to reproduce this error and also, the EasyAdmin version used.
- Setup a list page with a filter named "abc"
- Adding an action to a Controller for creating a new entity
- See how the filters are shared in the url
- The list of the same controller has to have a different filter type but with the same name "abc"
- After clicking on the save button, the application throws an error like
Warning: Undefined array key "comparison"