Fixed LINEORDER_INSERT interception

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

View File

@ -3294,8 +3294,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)."::delete ".$errmsg, LOG_ERR);
$this->error.=($this->error?', '.$errmsg:$errmsg);
}
$this->db->rollback();
return -1*$error;
}
else
{