Fix: short label of unit in Product::getLabelOfUnit
This commit is contained in:
parent
05a2fc6186
commit
e41afeacf4
@ -5392,7 +5392,7 @@ class Product extends CommonObject
|
|||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if ($resql && $this->db->num_rows($resql) > 0) {
|
if ($resql && $this->db->num_rows($resql) > 0) {
|
||||||
$res = $this->db->fetch_array($resql);
|
$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);
|
$this->db->free($resql);
|
||||||
return $label;
|
return $label;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user