Merge pull request #12586 from homer8173/patch-14

FIX #12558
This commit is contained in:
Laurent Destailleur 2019-12-01 11:38:23 +01:00 committed by GitHub
commit 9fb5fd65b8
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);