Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Ensure that the other address is always new #86

Open
wants to merge 2 commits into
base: 3-0-stable
Choose a base branch
from
Open

Ensure that the other address is always new #86

wants to merge 2 commits into from

Conversation

wdspkr
Copy link
Contributor

@wdspkr wdspkr commented Jul 9, 2015

If a user clicks the radio button to enter another address, this form was prefilled by spree default address for this user. This is NOT what we want. We want the address to always to be fresh.

Otherwise in conjuntion with the Spree::UserAdress module the preferred bill and shipping will be updated by the new address.

We almost always want to create a new temporary address, only when a validation error occurs we want to render the entered address.

Thomas von Deyen and others added 2 commits April 23, 2015 16:47
If a user clicks the radio button to enter another address, this form was prefilled by spree default address for this user. This is NOT what we want. We want the address to always to be fresh.

Otherwise in cinjuntion with the `Spree::UserAdress` module the preferred bill and shipping will be updated by the new address.

We always want to create a new temporary address.
The previous commit introduced, that the "Other address" radio button showed an empty form. But we want to see the filled form when we get a validation error. This fixes it.
@luisenrike
Copy link

Can anyone merge this one?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants