If the country field is changed the form submit doesn't work anymore.

Changing the country, generates a $form_state['rebuild'] = TRUE;
But this need to be rebuilt only when the validate is triggered by the country field.

Attached patch to fix issue

CommentFileSizeAuthor
addressfield-form-rebuild.patch697 bytescslevy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cslevy created an issue. See original summary.

cslevy’s picture

Status: Active » Needs review
bojanz’s picture

The point of the original line is to make addressfields work when JS is off. You change the country, you submit the form, you get the same form again with the address form rebuilt.

So what you're seeing sounds intentional?

cslevy’s picture

@bojanz
Thank you for pointing that out. Based on your comment, I discovered, that the problem it was on my side.
Please close this issue.

bojanz’s picture

Status: Needs review » Closed (works as designed)