Update product.class.php
Label of product on tooltip is more usefull than the ref who's already on the link
This commit is contained in:
parent
e76b5a370d
commit
00c5c940c9
@ -2814,8 +2814,8 @@ class Product extends CommonObject
|
|||||||
if ($maxlength) $newref=dol_trunc($newref,$maxlength,'middle');
|
if ($maxlength) $newref=dol_trunc($newref,$maxlength,'middle');
|
||||||
|
|
||||||
if ($withpicto) {
|
if ($withpicto) {
|
||||||
if ($this->type == 0) $result.=($lien.img_object($langs->trans("ShowProduct").' '.$this->ref,'product').$lienfin.' ');
|
if ($this->type == 0) $result.=($lien.img_object($langs->trans("ShowProduct").' '.$this->label,'product').$lienfin.' ');
|
||||||
if ($this->type == 1) $result.=($lien.img_object($langs->trans("ShowService").' '.$this->ref,'service').$lienfin.' ');
|
if ($this->type == 1) $result.=($lien.img_object($langs->trans("ShowService").' '.$this->label,'service').$lienfin.' ');
|
||||||
}
|
}
|
||||||
$result.=$lien.$newref.$lienfin;
|
$result.=$lien.$newref.$lienfin;
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user