-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Throw exception when editing an order and the old order could not be cancelled. #1170
Throw exception when editing an order and the old order could not be cancelled. #1170
Conversation
…cancelled. This is to avoid having 2 open orders.
How/why did this happen for you? |
I have some custom code that alters the result of When you edit an order, the original order is canceled and a new is created. The original order MUST be canceled. |
Seems like |
Yes, absolutely! But will everyone support this change? |
You're right, probably not worth a BC break. |
@colinmollenhour Just to be clear, I'm all for throwing the exception if It's very strange Magento does not throw an exception and just leaves things as is. Also: Should we leave bad code in? Just because some developer did a shitty job many many years ago? I think not. I actually had a client run into this issue and had to explain them the situation. They could not believe the stupidity of Magento... If @Flyingmana and @sreichel can agree, I'd be happy to move the exception to the All depends on your aim: You want a better program or you want BC (even when it is shitty code)? |
Ok, let me rephrase.. Probably not worth putting your fix on hold. So I think we can accept this as-is, and address the issue of |
Sounds good. Let’s get this merged. |
…cancelled. (OpenMage#1170) This is to avoid having 2 open orders.
…cancelled. (OpenMage#1170) This is to avoid having 2 open orders.
Throw exception when editing an order and the old order could not be cancelled.
This is to avoid having 2 open orders.
Contribution checklist (*)