Fix duplicate class in some cases
This commit is contained in:
parent
8aebcc45b2
commit
93b0e45246
@ -4033,7 +4033,7 @@ class Product extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
$linkclose.= ' title="'.dol_escape_htmltag($label, 1, 1).'"';
|
$linkclose.= ' title="'.dol_escape_htmltag($label, 1, 1).'"';
|
||||||
$linkclose.= ' class="classfortooltip"';
|
$linkclose.= ' class="nowraponall classfortooltip"';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
$hookmanager->initHooks(array('productdao'));
|
$hookmanager->initHooks(array('productdao'));
|
||||||
@ -4042,6 +4042,10 @@ class Product extends CommonObject
|
|||||||
if ($reshook > 0) $linkclose = $hookmanager->resPrint;
|
if ($reshook > 0) $linkclose = $hookmanager->resPrint;
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$linkclose = ' class="nowraponall"';
|
||||||
|
}
|
||||||
|
|
||||||
if ($option == 'supplier' || $option == 'category') {
|
if ($option == 'supplier' || $option == 'category') {
|
||||||
$url = DOL_URL_ROOT.'/product/fournisseurs.php?id='.$this->id;
|
$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.'>';
|
$linkstart.=$linkclose.'>';
|
||||||
$linkend='</a>';
|
$linkend='</a>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user