Merge pull request #2 from inovea-conseil/FIX-change_communication_status_prospect

FIX change in the communication status of the prospect
This commit is contained in:
IC-Nicolas 2022-10-31 14:23:27 +01:00 committed by GitHub
commit 4bee8cc8ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1452,7 +1452,7 @@ class Societe extends CommonObject
$sql .= ",fk_effectif = ".($this->effectif_id > 0 ? ((int) $this->effectif_id) : "null");
if (isset($this->stcomm_id)) {
$sql .= ",fk_stcomm=".($this->stcomm_id > 0 ? ((int) $this->stcomm_id) : "0");
$sql .= ",fk_stcomm=".($this->stcomm_id >= -1 ? ((int) $this->stcomm_id) : "0");
}
if (isset($this->typent_id)) {
$sql .= ",fk_typent = ".($this->typent_id > 0 ? ((int) $this->typent_id) : "0");