Update product.class.php

This commit is contained in:
Laurent Destailleur 2020-05-12 03:07:23 +02:00 committed by GitHub
parent d459f9902c
commit a099858385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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