Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
b84a7def1f
@ -1207,3 +1207,4 @@ CreatedByPublicPortal=Créé à partir du portail public
|
|||||||
UserAgent=User Agent
|
UserAgent=User Agent
|
||||||
InternalUser=Utilisateur interne
|
InternalUser=Utilisateur interne
|
||||||
ExternalUser=Utilisateur externe
|
ExternalUser=Utilisateur externe
|
||||||
|
WarningUserDifferentContactSocid=Contact non relié à un tiers. Le tiers ne sera pas enregistré.
|
||||||
|
|||||||
@ -537,6 +537,9 @@ if (empty($reshook)) {
|
|||||||
$sql .= " SET fk_socpeople=".((int) $contactid);
|
$sql .= " SET fk_socpeople=".((int) $contactid);
|
||||||
if (!empty($contact->socid)) {
|
if (!empty($contact->socid)) {
|
||||||
$sql .= ", fk_soc=".((int) $contact->socid);
|
$sql .= ", fk_soc=".((int) $contact->socid);
|
||||||
|
} elseif ($socid > 0) {
|
||||||
|
$sql .= ", fk_soc = null";
|
||||||
|
setEventMessages($langs->trans("WarningUserDifferentContactSocid"), '', 'warnings'); // Add message if post socid != $contact->socid
|
||||||
}
|
}
|
||||||
$sql .= " WHERE rowid = ".((int) $object->id);
|
$sql .= " WHERE rowid = ".((int) $object->id);
|
||||||
} elseif ($socid > 0) {
|
} elseif ($socid > 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user