mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix: On Supplier Order create, if insertExtrafield failed, Dolibarr do not return error and continue
This commit is contained in:
parent
9516f9bbd2
commit
7997e927a0
|
|
@ -1610,8 +1610,13 @@ class CommandeFournisseur extends CommonOrder
|
|||
// End call triggers
|
||||
}
|
||||
|
||||
$this->db->commit();
|
||||
return $this->id;
|
||||
if (!$error) {
|
||||
$this->db->commit();
|
||||
return $this->id;
|
||||
} else {
|
||||
$this->db->rollback();
|
||||
return -4;
|
||||
}
|
||||
} else {
|
||||
$this->error = $this->db->lasterror();
|
||||
$this->db->rollback();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user