Skip to content

Commit

Permalink
Fixed LINEORDER_UPDATE interception
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgdf committed Jun 10, 2014
1 parent 6e0ecc4 commit 95a58eb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions htdocs/commande/class/commande.class.php
Expand Up @@ -3402,8 +3402,18 @@ function update($notrigger=0)
// Fin appel triggers
}

$this->db->commit();
return 1;
if (!$error) {
$this->db->commit();
return 1;
}

foreach($this->errors as $errmsg)
{
dol_syslog(get_class($this)."::update ".$errmsg, LOG_ERR);
$this->error.=($this->error?', '.$errmsg:$errmsg);
}
$this->db->rollback();
return -1*$error;
}
else
{
Expand Down

0 comments on commit 95a58eb

Please sign in to comment.