Merge pull request #27067 from alexandre-janniaux/commande-error-forward/1

Qual: command: forward database error on failure
This commit is contained in:
Laurent Destailleur 2023-12-14 01:39:59 +01:00 committed by GitHub
commit 0fc4be5d2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}