Skip to content

Commit

Permalink
FIX: Error message overwrited when a error occurs during update of pr…
Browse files Browse the repository at this point in the history
…oduct multilangs
  • Loading branch information
kkhelifa-opendsi committed Sep 3, 2024
1 parent 70660d7 commit 0891fd4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion htdocs/product/class/product.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,6 @@ public function update($id, $user, $notrigger = false, $action = 'update', $upda
// Multilangs
if (getDolGlobalInt('MAIN_MULTILANGS')) {
if ($this->setMultiLangs($user) < 0) {
$this->error = $langs->trans("Error")." : ".$this->db->error()." - ".$sql;
return -2;
}
}
Expand Down

0 comments on commit 0891fd4

Please sign in to comment.