Merge pull request #15317 from bafbes/abb120352

fix:initialize ref with id value
This commit is contained in:
Laurent Destailleur 2020-11-06 18:43:21 +01:00 committed by GitHub
commit 17f4b7c140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -524,7 +524,7 @@ class ActionComm extends CommonObject
$resql = $this->db->query($sql);
if ($resql)
{
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."actioncomm", "id");
$this->ref =$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."actioncomm", "id");
// Now insert assigned users
if (!$error)