Skip to content

Commit

Permalink
Merge pull request #1384 from Pfontaine/fix/societe2contact_civilite
Browse files Browse the repository at this point in the history
Fix: add civilite_id field in contact when create new third party.
  • Loading branch information
eldy committed Jan 21, 2014
2 parents d35cbb2 + 919a7cd commit 8bd2a1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions htdocs/societe/class/societe.class.php
Expand Up @@ -303,6 +303,7 @@ function create_individual($user) {

$contact->name = $this->name_bis;
$contact->firstname = $this->firstname;
$contact->civilite_id = $this->civility_id;
$contact->socid = $this->id; // fk_soc
$contact->statut = 1;
$contact->priv = 0;
Expand Down
2 changes: 1 addition & 1 deletion htdocs/societe/soc.php
Expand Up @@ -118,7 +118,7 @@
$object->particulier = GETPOST("private");

$object->name = dolGetFirstLastname(GETPOST('firstname'),GETPOST('nom')?GETPOST('nom'):GETPOST('name'));
$object->civilite_id = GETPOST('civilite_id');
$object->civility_id = GETPOST('civilite_id');
// Add non official properties
$object->name_bis = GETPOST('name')?GETPOST('name'):GETPOST('nom');
$object->firstname = GETPOST('firstname');
Expand Down

0 comments on commit 8bd2a1b

Please sign in to comment.