Update product.class.php
This commit is contained in:
parent
d459f9902c
commit
a099858385
@ -5391,7 +5391,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] : $langs->trans('unit' . $res['code']);
|
||||
$label = ($label_type == 'short' ? $res[$label_type] : 'unit'.$res['code']);
|
||||
$this->db->free($resql);
|
||||
return $label;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user