diff --git a/ChangeLog b/ChangeLog index 075eb47d53992ec3bff62bc5e47859c554fa96dd..f8e792e791292679c157da844cff65e9a2b2d2ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -27,6 +27,7 @@ Fix: Add code save on create event. Fix: SQL injection. Fix: [ bug #1589 ] Menu type in "Edit menu" page is not translated Fix: [ bug #1591 ] Linked object block shows Total HT/TTC even if not having permission to read them +Fix: [ bug #1577 ] When creating new Private individual third, selected third type is ignored ***** ChangeLog for 3.5.4 compared to 3.5.3 ***** Fix: Hide title of event when agenda module disabled. diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 0e2e58f73e886a17ea1cb69df3565a26ef81d982..b24179328fc68826a815b3c170bfff97d9fbb17e 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -159,14 +159,7 @@ if (empty($reshook)) $object->forme_juridique_code = GETPOST('forme_juridique_code'); $object->effectif_id = GETPOST('effectif_id'); - if (GETPOST("private") == 1) - { - $object->typent_id = dol_getIdFromCode($db,'TE_PRIVATE','c_typent'); - } - else - { - $object->typent_id = GETPOST('typent_id'); - } + $object->typent_id = GETPOST('typent_id'); $object->client = GETPOST('client'); $object->fournisseur = GETPOST('fournisseur');