Fix duplicate class in some cases

This commit is contained in:
Laurent Destailleur 2019-06-29 02:27:58 +02:00
parent 8aebcc45b2
commit 93b0e45246

View File

@ -4033,7 +4033,7 @@ class Product extends CommonObject
}
$linkclose.= ' title="'.dol_escape_htmltag($label, 1, 1).'"';
$linkclose.= ' class="classfortooltip"';
$linkclose.= ' class="nowraponall classfortooltip"';
/*
$hookmanager->initHooks(array('productdao'));
@ -4042,6 +4042,10 @@ class Product extends CommonObject
if ($reshook > 0) $linkclose = $hookmanager->resPrint;
*/
}
else
{
$linkclose = ' class="nowraponall"';
}
if ($option == 'supplier' || $option == 'category') {
$url = DOL_URL_ROOT.'/product/fournisseurs.php?id='.$this->id;
@ -4062,7 +4066,7 @@ class Product extends CommonObject
}
}
$linkstart = '<a class="nowraponall" href="'.$url.'"';
$linkstart = '<a href="'.$url.'"';
$linkstart.=$linkclose.'>';
$linkend='</a>';