fix: Un problème d'import des contacts
This commit is contained in:
		@@ -41,18 +41,22 @@ const config = {
 | 
				
			|||||||
          const bureau = []
 | 
					          const bureau = []
 | 
				
			||||||
          for (const contact of association.bureau) {
 | 
					          for (const contact of association.bureau) {
 | 
				
			||||||
            const detail = contact.Contact_id
 | 
					            const detail = contact.Contact_id
 | 
				
			||||||
            let c = {
 | 
					            if (detail) {
 | 
				
			||||||
              denomination: detail.denomination,
 | 
					              let c = {
 | 
				
			||||||
              prenom: detail.prenom,
 | 
					                denomination: detail.denomination,
 | 
				
			||||||
              nom: detail.nom,
 | 
					                prenom: detail.prenom,
 | 
				
			||||||
 | 
					                nom: detail.nom,
 | 
				
			||||||
 | 
					              }
 | 
				
			||||||
 | 
					              if (detail.mail && detail.display_mail) {
 | 
				
			||||||
 | 
					                c.mail = detail.mail
 | 
				
			||||||
 | 
					              }
 | 
				
			||||||
 | 
					              if (detail.telephone && detail.display_telephone) {
 | 
				
			||||||
 | 
					                c.telephone = detail.telephone
 | 
				
			||||||
 | 
					              }
 | 
				
			||||||
 | 
					              bureau.push(c)
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
 | 
					              console.log("problème sur un contact")
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if (detail.mail && detail.display_mail) {
 | 
					 | 
				
			||||||
              c.mail = detail.mail
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            if (detail.telephone && detail.display_telephone) {
 | 
					 | 
				
			||||||
              c.telephone = detail.telephone
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            bureau.push(c)
 | 
					 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
          association.bureau = bureau
 | 
					          association.bureau = bureau
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user