Fix: short label of unit in Product::getLabelOfUnit

This commit is contained in:
DEMAREST Maxime (Indelog) 2020-09-11 15:34:11 +02:00
parent 05a2fc6186
commit e41afeacf4

View File

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