FIX Option 'onlypicto' was showing also the ref

This commit is contained in:
Laurent Destailleur 2016-05-05 23:39:58 +02:00
parent 2960fb6df7
commit f78bc16076

View File

@ -1577,7 +1577,7 @@ class Adherent extends CommonObject
if ($withpicto) $result.=($link.img_object('', $picto, 'class="classfortooltip"').$linkend);
if ($withpicto && $withpicto != 2) $result.=' ';
$result.=$link.($maxlen?dol_trunc($this->ref,$maxlen):$this->ref).$linkend;
$result.=$link.(($withpicto != 2) ? ($maxlen?dol_trunc($this->ref,$maxlen):$this->ref) : '').$linkend;
return $result;
}