Merge pull request #23081 from FHenry/dev_PropalResetIPSignOnBAckToDraft

fix: propal when back to draft delete ip and name of web sign
This commit is contained in:
Laurent Destailleur 2022-12-06 21:06:22 +01:00 committed by GitHub
commit 291cb1908d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2828,6 +2828,7 @@ class Propal extends CommonObject
$sql = "UPDATE ".MAIN_DB_PREFIX."propal";
$sql .= " SET fk_statut = ".self::STATUS_DRAFT;
$sql .= ", online_sign_ip = NULL , online_sign_name = NULL";
$sql .= " WHERE rowid = ".((int) $this->id);
$resql = $this->db->query($sql);