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
I admit this could be intentional to support a clean state for the @address, but in my case I want the @address with errors, so I've had to make the call and update the reference manually for some reason.
I've had an issue creating some custom validation on my checkout process, because the update service does not update the instance of the class it is acting on. Near this line of code, can see that the flash notice is updated with errors, but the instance @address is still the instance of the address before the service is called.
https://github.com/spree/spree_legacy_frontend/blob/bf44b73278e0efe18806fd3d8d4b343b6efadcd4/app/controllers/spree/addresses_controller.rb#L26
I admit this could be intentional to support a clean state for the @address, but in my case I want the @address with errors, so I've had to make the call and update the reference manually for some reason.
The text was updated successfully, but these errors were encountered: