Merge pull request #14712 from indelog/12.0
Fix: short label of unit in Product::getLabelOfUnit()
This commit is contained in:
commit
29a45c46d5
@ -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