From a04c499af0ca24530fd1ace9027e945adbf4a505 Mon Sep 17 00:00:00 2001 From: nobohan Date: Fri, 12 Nov 2021 16:01:03 +0100 Subject: [PATCH 1/2] fix when adding multiple pick address type form in a collection --- .../Resources/public/vuejs/Address/mod_input_address_index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/mod_input_address_index.js b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/mod_input_address_index.js index 0f39c5e75..cb7da6e07 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/mod_input_address_index.js +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/mod_input_address_index.js @@ -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 ; From e413a09a0f9256eb3319dd236a86152fba1fe9ee Mon Sep 17 00:00:00 2001 From: nobohan Date: Fri, 12 Nov 2021 16:05:47 +0100 Subject: [PATCH 2/2] upd CHANGELOG --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66de80f48..4661dcaa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to ## Unreleased +* [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.