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:
BENKE Charles 2014-10-09 21:31:35 +02:00
parent e76b5a370d
commit 00c5c940c9

View File

@ -2814,8 +2814,8 @@ class Product extends CommonObject
if ($maxlength) $newref=dol_trunc($newref,$maxlength,'middle');
if ($withpicto) {
if ($this->type == 0) $result.=($lien.img_object($langs->trans("ShowProduct").' '.$this->ref,'product').$lienfin.' ');
if ($this->type == 1) $result.=($lien.img_object($langs->trans("ShowService").' '.$this->ref,'service').$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->label,'service').$lienfin.' ');
}
$result.=$lien.$newref.$lienfin;
return $result;