FIX api orders : forward database error on failure (backpot commit d9e81cb) (#35478)

This commit is contained in:
lvessiller-opendsi 2025-09-25 11:47:51 +02:00 committed by GitHub
parent e818bf732d
commit bcf6d6a7a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1156,7 +1156,7 @@ class Commande extends CommonOrder
}
}
} else {
dol_print_error($this->db);
$this->error = $this->db->lasterror();
$this->db->rollback();
return -1;
}