Skip to content

Commit

Permalink
Update expedition.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 5, 2018
1 parent 1a7c09b commit 81e193b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions htdocs/expedition/class/expedition.class.php
Expand Up @@ -2418,7 +2418,6 @@ function insert($user=null, $notrigger=0)
$result=$this->insertExtraFields();
if ($result < 0)
{
$this->errors[]=$this->error;
$error++;
}
}
Expand All @@ -2429,7 +2428,6 @@ function insert($user=null, $notrigger=0)
$result=$this->call_trigger('LINESHIPPING_INSERT',$user);
if ($result < 0)
{
$this->errors[]=$this->error;
$error++;
}
// End call triggers
Expand All @@ -2445,6 +2443,7 @@ function insert($user=null, $notrigger=0)
dol_syslog(get_class($this)."::delete ".$errmsg, LOG_ERR);
$this->error.=($this->error?', '.$errmsg:$errmsg);
}

$this->db->rollback();
return -1*$error;
}
Expand Down

0 comments on commit 81e193b

Please sign in to comment.