diff --git a/htdocs/actioncomm.class.php3 b/htdocs/actioncomm.class.php3 index 770f0bc667b..2ea5bb8e3d8 100644 --- a/htdocs/actioncomm.class.php3 +++ b/htdocs/actioncomm.class.php3 @@ -60,9 +60,13 @@ class ActionComm { $this->contact = 0; } - $sql = "INSERT INTO llx_actioncomm (datea, fk_action, fk_soc, fk_user_author, fk_user_action, fk_contact, percent, note,priority) "; + if (!strlen($this->propalrowid)) + { + $this->propalrowid = 0; + } + $sql = "INSERT INTO llx_actioncomm (datea, fk_action, fk_soc, fk_user_author, fk_user_action, fk_contact, percent, note,priority,propalrowid) "; $sql .= " VALUES ('$this->date', $this->type, $this->societe, $author->id,"; - $sql .= $this->user->id . ", $this->contact, $this->percent, '$this->note', $this->priority);"; + $sql .= $this->user->id . ", $this->contact, $this->percent, '$this->note', $this->priority, $this->propalrowid);"; if ($this->db->query($sql) ) {