Fix ref not visible in payment link

This commit is contained in:
Laurent Destailleur
2018-03-01 02:49:44 +01:00
parent 6f29a574cf
commit c190ec5a2c

View File

@@ -1089,7 +1089,7 @@ class Paiement extends CommonObject
$result .= $linkstart;
if ($withpicto) $result.=img_object(($notooltip?'':$label), ($this->picto?$this->picto:'generic'), ($notooltip?(($withpicto != 2) ? 'class="paddingright"' : ''):'class="'.(($withpicto != 2) ? 'paddingright ' : '').'classfortooltip"'), 0, 0, $notooltip?0:1);
if ($withpicto && $withpicto != 2) $result.= $this->ref;
if ($withpicto && $withpicto != 2) $result.= ($this->ref?$this->ref:$this->id);
$result .= $linkend;
return $result;