This commit is contained in:
Norbert Penel 2019-12-01 10:47:25 +01:00 committed by GitHub
parent df5ef99f4f
commit 073274072f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1617,7 +1617,7 @@ class Contact extends CommonObject
$this->db->begin();
$sql = "DELETE FROM ".MAIN_DB_PREFIX."societe_contacts WHERE fk_soc=".$this->socid;
$sql = "DELETE FROM ".MAIN_DB_PREFIX."societe_contacts WHERE fk_soc=".$this->socid." AND fk_socpeople=".$this->id;;
dol_syslog(get_class($this)."::".__METHOD__, LOG_DEBUG);
$result = $this->db->query($sql);