diff --git a/htdocs/contrat/class/contrat.class.php b/htdocs/contrat/class/contrat.class.php index dac55d099e327..f779a866aaefc 100644 --- a/htdocs/contrat/class/contrat.class.php +++ b/htdocs/contrat/class/contrat.class.php @@ -1633,6 +1633,7 @@ public function addline($desc, $pu_ht, $qty, $txtva, $txlocaltax1, $txlocaltax2, if (empty($error)) { // Call trigger + $this->context['line_id'] = $contractlineid; $result = $this->call_trigger('LINECONTRACT_INSERT', $user); if ($result < 0) { $error++; @@ -1827,6 +1828,7 @@ public function updateline($rowid, $desc, $pu, $qty, $remise_percent, $date_star if (empty($error)) { // Call trigger + $this->context['line_id'] = $rowid; $result = $this->call_trigger('LINECONTRACT_MODIFY', $user); if ($result < 0) { $this->db->rollback(); @@ -1861,6 +1863,7 @@ public function deleteLine($idline, User $user) if ($this->statut >= 0) { // Call trigger + $this->context['line_id'] = $idline; $result = $this->call_trigger('LINECONTRACT_DELETE', $user); if ($result < 0) { return -1;