From 21ec7ce98fb8e8597a9b3cd735eaca3c73ec7985 Mon Sep 17 00:00:00 2001 From: kkhelifa-opendsi Date: Fri, 6 Sep 2024 13:24:59 +0200 Subject: [PATCH] FIX: Error message overwrited when a error occurs during update of product multilangs (#30841) --- htdocs/product/class/product.class.php | 1 - 1 file changed, 1 deletion(-) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 13f6e70b99a..e289762d2a5 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -1275,7 +1275,6 @@ class Product extends CommonObject // Multilangs if (getDolGlobalInt('MAIN_MULTILANGS')) { if ($this->setMultiLangs($user) < 0) { - $this->error = $langs->trans("Error")." : ".$this->db->error()." - ".$sql; return -2; } }