Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
addressfield-form-rebuild.patch | 697 bytes | cslevy |
Comments
Comment #2
cslevy CreditAttribution: cslevy commentedComment #3
bojanz CreditAttribution: bojanz commentedThe 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?
Comment #4
cslevy CreditAttribution: cslevy commented@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.
Comment #5
bojanz CreditAttribution: bojanz commented