Skip to content

Commit

Permalink
Merge pull request #3717 from marcosgdf/bug-3197
Browse files Browse the repository at this point in the history
FIX [ bug #3197 ] Trigger LINECONTRACT_CREATE does not follow common denomination
  • Loading branch information
eldy committed Oct 11, 2015
2 parents 9a6ac4f + 8cd17c0 commit 5b715c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions htdocs/contrat/class/contrat.class.php
Expand Up @@ -1332,7 +1332,7 @@ function addline($desc, $pu_ht, $qty, $txtva, $txlocaltax1, $txlocaltax2, $fk_pr

if (empty($error)) {
// Call trigger
$result=$this->call_trigger('LINECONTRACT_CREATE',$user);
$result=$this->call_trigger('LINECONTRACT_INSERT',$user);
if ($result < 0)
{
$this->db->rollback();
Expand Down Expand Up @@ -2644,7 +2644,7 @@ public function insert($notrigger = 0)
if (!$notrigger)
{
// Call trigger
$result = $this->call_trigger('LINECONTRACT_CREATE', $user);
$result = $this->call_trigger('LINECONTRACT_INSERT', $user);
if ($result < 0) {
$this->db->rollback();
return -1;
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/triggers/interface_90_all_Demo.class.php-NORUN
Expand Up @@ -167,7 +167,7 @@ class InterfaceDemo extends DolibarrTriggers
case 'CONTRACT_CANCEL':
case 'CONTRACT_CLOSE':
case 'CONTRACT_DELETE':
case 'LINECONTRACT_CREATE':
case 'LINECONTRACT_INSERT':
case 'LINECONTRACT_UPDATE':
case 'LINECONTRACT_DELETE':

Expand Down

0 comments on commit 5b715c2

Please sign in to comment.