Problem/Motivation

When you add more than 1 br_address_field to the same form, it gets lost when it returns the ZIP code results, because the form is replaced (always the first one),
i.e,
when you have 2 br_address_fields in the same form and change the second one, the return changes the first br_address_field completely and ignores the second one completely.

Steps to reproduce

Add two br_address_field and the same form and add the cep to second one.

Proposed resolution

Instead replace the entire br_address_field group, I've used the ajax InvokeCommand to only fill the fields and
based on parent field that trigger it.

CommentFileSizeAuthor
multiple_in_same_form.patch5.68 KBpablorigueto
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

peduardo created an issue. See original summary.

bmagalhaes made their first commit to this issue’s fork.

  • bmagalhaes committed 54fc942b on 2.0.x
    Issue #3477617: Allow to enable multiple br_address_fields in the same...
bmagalhaes’s picture

Status: Needs review » Fixed
bmagalhaes’s picture

Status: Fixed » Closed (fixed)