Merge pull request #1431 from Pfontaine/fix/state_id_on_contact

Add state_id in contact for individual third party
This commit is contained in:
Laurent Destailleur 2014-02-25 14:05:56 +01:00
commit bd6d9b9dad

View File

@ -313,6 +313,7 @@ class Societe extends CommonObject
$contact->zip = $this->zip;
$contact->town = $this->town;
$contact->phone_pro = $this->phone;
$contact->state_id = $this->state_id;
$result = $contact->create($user);
if ($result < 0) {
$this->error = $contact->error;