Skip to content
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

Observer name "sales_order_save_after" is too generic. #1516

Closed
mpvdk opened this issue Aug 18, 2022 · 1 comment · Fixed by #1517, #1518, #1519, #1520 or #1521
Closed

Observer name "sales_order_save_after" is too generic. #1516

mpvdk opened this issue Aug 18, 2022 · 1 comment · Fixed by #1517, #1518, #1519, #1520 or #1521

Comments

@mpvdk
Copy link

mpvdk commented Aug 18, 2022

There is an observer named "sales_order_save_after" in etc/adminhtml/events.xml. This name is too generic. Magento merges all observers in a keyed array, so if any have the same name, they override one another.

Suggested solution:

Rename observer to "mailchimp_sales_order_save_after". Which adheres to the logic all your other observers are named.

@gonzaloebiz gonzaloebiz self-assigned this Aug 18, 2022
@gonzaloebiz gonzaloebiz added this to the 10x.x.48 milestone Aug 18, 2022
gonzaloebiz added a commit that referenced this issue Aug 18, 2022
rename all admin observers closes #1516 for magento 2.1
gonzaloebiz added a commit that referenced this issue Aug 18, 2022
rename all admin events closes #1516 for magento 2.2
gonzaloebiz added a commit that referenced this issue Aug 18, 2022
rename all admin observers closes #1516 for magento 2.3.6-p1
gonzaloebiz added a commit that referenced this issue Aug 18, 2022
rename all admin observers closes #1516 for magento 2.3
@gonzaloebiz
Copy link
Collaborator

Thanks @mpvdk for pointing that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment