diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 6a832eced1e..d1f36ca055d 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -5392,7 +5392,7 @@ class Product extends CommonObject $resql = $this->db->query($sql); if ($resql && $this->db->num_rows($resql) > 0) { $res = $this->db->fetch_array($resql); - $label = ($label_type == 'short' ? $res[$label_type] : 'unit'.$res['code']); + $label = ($label_type == 'short_label' ? $res[$label_type] : 'unit'.$res['code']); $this->db->free($resql); return $label; }