From e41afeacf470374ac4d70612566e9e07a34adf14 Mon Sep 17 00:00:00 2001 From: "DEMAREST Maxime (Indelog)" Date: Fri, 11 Sep 2020 15:34:11 +0200 Subject: [PATCH] Fix: short label of unit in Product::getLabelOfUnit --- htdocs/product/class/product.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }