You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be observed while editing the option values of any type (admin/option_types/1/edit for example). Delete an option value, and change one of the fields of another option value, then submit the update. The field you changed is not updated.
This is because the "deleted" row still exists in the form, it is merely hidden. Therefore when the update is submitted, the deleted row is sent back to the server for update, and naturally causes a failure and rollback because the row no longer exists.
This can be observed while editing the option values of any type (admin/option_types/1/edit for example). Delete an option value, and change one of the fields of another option value, then submit the update. The field you changed is not updated.
This is because the "deleted" row still exists in the form, it is merely hidden. Therefore when the update is submitted, the deleted row is sent back to the server for update, and naturally causes a failure and rollback because the row no longer exists.
The culprit is this function from backend/app/assets/javascripts/spree/backend/admin.js.erb.
Is there a reason for hiding the deleted row, rather than removing it entirely?
The text was updated successfully, but these errors were encountered: