-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Event pre_update triggered twice #2005
Comments
This is the expected behavior ... but it didn't happen in previous versions because of a bug. You can edit information in two ways: via a form and via Ajax. The form is the regular workflow and is handled by If this is correct, you can remove the toggle from the list view or you can detect if the request is via Ajax and not execute the logic in that case. You can inject the |
@javiereguiluz thank you for answering. I tried your solution but it still is triggered twice. I've injected RequestStack and checked isXmlHttpRequest(), and in both cases it is not an ajax call. It happens every time i update a form (no ajax). |
I'm closing this issue because we're starting a new phase in the history of this bundle (see #2059). We've moved it into a new GitHub organization and we need to start from scratch: no past issues, no pending pull requests, etc. I understand if you are angry or disappointed by this, but we really need to "reset" everything in order to reignite the development of this bundle. |
Hello everyone.
I've created an event subscriber that sends an email every time certain entity is updated but the event is triggered twice and i cant figure out why.
EasyAdminBundle version: 1.17.9
services.yml
AprobarPublicacionSubscriber.php
What am i missing?
Thank you.
The text was updated successfully, but these errors were encountered: