FIX : db transaction not rolled back if Product::setMultilangs() returns an error (#29332)
This commit is contained in:
parent
c58e6f7373
commit
94f6b8ce6c
1 changed files with 1 additions and 0 deletions
|
|
@ -1329,6 +1329,7 @@ class Product extends CommonObject
|
|||
if (getDolGlobalInt('MAIN_MULTILANGS')) {
|
||||
if ($this->setMultiLangs($user) < 0) {
|
||||
$this->error = $langs->trans("Error")." : ".$this->db->error()." - ".$sql;
|
||||
$this->db->rollback();
|
||||
return -2;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue