diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 479d6b9e6b2..47e83839598 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -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; } }