FIX: Error message overwrited when a error occurs during update of product multilangs (#30841)

This commit is contained in:
kkhelifa-opendsi 2024-09-06 13:24:59 +02:00 committed by GitHub
parent 70660d778f
commit 21ec7ce98f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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