fix : withpicto = 2 send only icon

This commit is contained in:
BENKE Charlie 2015-04-28 13:25:38 +02:00
parent e86e46c682
commit 3b02bf1424

View File

@ -1811,7 +1811,8 @@ class Societe extends CommonObject
if ($withpicto) $result.=($link.img_object(($notooltip?'':$label), 'company', ($notooltip?'':'class="classfortooltip"')).$linkend);
if ($withpicto && $withpicto != 2) $result.=' ';
$result.=$link.($maxlen?dol_trunc($name,$maxlen):$name).$linkend;
$result.=$lien.($withpicto !=2?($maxlen?dol_trunc($name,$maxlen):$name):'').$lienfin;
return $result;
}