Merge pull request #21762 from ptibogxiv/patch-37

Fix updating language thirdparty to member
This commit is contained in:
Laurent Destailleur 2022-08-16 19:51:55 +02:00 committed by GitHub
commit b432c1ff11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1581,6 +1581,7 @@ class Societe extends CommonObject
$lmember->phone = $this->phone;
$lmember->state_id = $this->state_id;
$lmember->country_id = $this->country_id;
$lmember->default_lang = $this->default_lang;
$result = $lmember->update($user, 0, 1, 1, 1); // Use nosync to 1 to avoid cyclic updates
if ($result < 0) {