Merge branch 'fix_add_multiple_pick_address_type_in_collection' into 'master'

fix when adding multiple pick address type form in a collection

See merge request Chill-Projet/chill-bundles!216
This commit is contained in:
Julien Fastré 2021-11-15 11:23:05 +00:00
commit a1125cfd3a
2 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,8 @@ and this project adheres to
## Unreleased
<!-- write down unreleased development here -->
* [main] fix adding multiple AddresseDeRelais (combine PickAddressType with ChillCollection)
* unnecessary whitespace removed from person banner after person-id + double parentheses removed (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/290)
* [person]: delete accompanying period work, including related objects (cascade) (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/36)
* [address]: Display of incomplete address adjusted.

View File

@ -6,12 +6,12 @@ import App from './App.vue';
const i18n = _createI18n(addressMessages);
const addAddressInput = (inputs) => {
console.log(inputs)
inputs.forEach(el => {
let
addressId = el.value,
uniqid = el.dataset.inputAddress,
container = document.querySelector('div[data-input-address-container="' + uniqid + '"]'),
container = el.parentNode.querySelector('div[data-input-address-container="' + uniqid + '"]'),
isEdit = addressId !== '',
addressIdInt = addressId !== '' ? parseInt(addressId) : null
;