From c46a35292b68df0585861bea4392acb35c6717d6 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Wed, 28 May 2008 18:07:30 +0000
Subject: [PATCH] Fix: When creating a personal third party, email was lost

---
 htdocs/soc.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/htdocs/soc.php b/htdocs/soc.php
index 78f66fa522c..244469b9755 100644
--- a/htdocs/soc.php
+++ b/htdocs/soc.php
@@ -167,7 +167,8 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"])
 				    $contact->fk_pays=$soc->fk_pays;
 				    $contact->socid=$soc->id;					// fk_soc
 				    $contact->status=1;	
-					$contact->priv=0;
+				    $contact->email=$soc->email;	
+				    $contact->priv=0;
 					
 					$result=$contact->create($user);
 				}
-- 
GitLab