-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
It's possible to edit an already canceled order if you had it open in another tab and didn't refresh #2232
Comments
This is happening when two person edit the same product. This can be prevented when the persons are in the same office, but not connected from outside. Many time I got complains the products have no changes. The explanation was on the content editors left a page open for a long time, another edited the product, then the first one pressed Save. For sure this issue occurs for other sections too. |
@addison74 I am talking about orders! :D |
I understood from the very beginning your question. It did not happen to me yet but I mentioned before what happened to me when editing products in Backend. |
For the orders I think it's possible to check if the order is canceled before re-creating a new one, I just haven't gotten the chance to dig into the code to find it. For products it's a bit more complicated. |
The situation could only be solved if when one opens a page with the save option it is no longer allowed for someone else to open that page. An error message may be sent to another user to tell him X is editing that section. I would not allow any administrator to edit over the others. As it is now the data can be rewritten if there is no collaboration between users. For orders in particular I think it can be achieved, but I did not analyze in detail how this could be done. |
One solution from the top of my head for products (or maybe any other edit page) is diffing the product's |
good idea! |
When trying to edit an order there's no check server-side for whether that order is already canceled (and therefore may have been modified before). This can lead to confusion if two different people try to edit it without refreshing their page like it happened today with one of my team members, resulting in two different orders originating from the same parent order.
Preconditions (*)
Steps to reproduce (*)
pending
orders and both have the same parent order.Expected result (*)
Actual result (*)
The text was updated successfully, but these errors were encountered: