Skip to content

Commit

Permalink
Merge pull request #12586 from homer8173/patch-14
Browse files Browse the repository at this point in the history
FIX #12558
  • Loading branch information
eldy committed Dec 1, 2019
2 parents 3eec243 + 0732740 commit 9fb5fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/contact/class/contact.class.php
Expand Up @@ -1617,7 +1617,7 @@ public function updateRoles()

$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);
Expand Down

0 comments on commit 9fb5fd6

Please sign in to comment.