Fixed LINEORDER_UPDATE interception

This commit is contained in:
Marcos García de La Fuente 2014-06-10 12:23:31 +02:00
parent 6e0ecc4f78
commit 95a58ebef8

View File

@ -3402,8 +3402,18 @@ class OrderLine extends CommonOrderLine
// 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
{