Merge pull request #27067 from alexandre-janniaux/commande-error-forward/1
Qual: command: forward database error on failure
This commit is contained in:
commit
0fc4be5d2b
1 changed files with 1 additions and 1 deletions
|
|
@ -1191,7 +1191,7 @@ class Commande extends CommonOrder
|
|||
|
||||
return 0;
|
||||
} else {
|
||||
dol_print_error($this->db);
|
||||
$this->error = $this->db->lasterror();
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue