diff --git a/src/main/webapp/src/pages/DemandeAff.jsx b/src/main/webapp/src/pages/DemandeAff.jsx index 151d238..ccfa4fd 100644 --- a/src/main/webapp/src/pages/DemandeAff.jsx +++ b/src/main/webapp/src/pages/DemandeAff.jsx @@ -17,14 +17,23 @@ function formatAdresse(data) { } function reconstruireAdresse(infos) { + console.log(infos); let adresseReconstruite = ""; - adresseReconstruite += infos.numero_voie + ' ' + formatAdresse(infos.type_voie) + ' '; + if(infos.numero_voie === null){ + if (infos.complement_adresse) { + adresseReconstruite += formatAdresse(infos.complement_adresse) + ', '; + } + }else{ + adresseReconstruite += infos.numero_voie + ' '; + } + + adresseReconstruite += formatAdresse(infos.type_voie) + ' '; adresseReconstruite += formatAdresse(infos.libelle_voie) + ', '; adresseReconstruite += infos.code_postal + ' ' + infos.libelle_commune + ', '; - if (infos.complement_adresse) { - adresseReconstruite += infos.complement_adresse.toLowerCase() + ', '; + if (infos.complement_adresse && infos.numero_voie !== null) { + adresseReconstruite += formatAdresse(infos.complement_adresse) + ', '; } if (infos.code_cedex && infos.libelle_cedex) { adresseReconstruite += 'Cedex ' + infos.code_cedex + ' - ' + infos.libelle_cedex; @@ -400,4 +409,4 @@ export function DemandeAffOk() { espace FFSAF

); -} \ No newline at end of file +} diff --git a/src/main/webapp/src/pages/admin/affiliation/AffiliationReqPage.jsx b/src/main/webapp/src/pages/admin/affiliation/AffiliationReqPage.jsx index 66bd2db..9c8a98e 100644 --- a/src/main/webapp/src/pages/admin/affiliation/AffiliationReqPage.jsx +++ b/src/main/webapp/src/pages/admin/affiliation/AffiliationReqPage.jsx @@ -70,6 +70,7 @@ function Content({data, refresh}) { formData.append('siret', event.target.siret.value); formData.append('rna', event.target.rna.value); formData.append('address', event.target.address.value); + formData.append('contact', event.target.contact.value); if (event.target.logo.files[0]) formData.append('logo', event.target.logo.files[0]);