Merge pull request #22670 from hregis/fix_can_not_set_prospect_status

FIX can not set prospect status "Do not contact"
This commit is contained in:
Laurent Destailleur 2022-10-26 14:06:39 +02:00 committed by GitHub
commit 873d66a1d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1479,7 +1479,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=".(int) $this->stcomm_id;
}
if (isset($this->typent_id)) {
$sql .= ",fk_typent = ".($this->typent_id > 0 ? ((int) $this->typent_id) : "0");