FIX : Remove unexisting link

This commit is contained in:
ATM-Nicolas 2020-03-06 09:52:19 +01:00
parent 52a92924de
commit a9d7bbc2ed
4 changed files with 0 additions and 8 deletions

View File

@ -972,9 +972,7 @@ if ($resql)
$nbofsalesrepresentative=count($listsalesrepresentatives); $nbofsalesrepresentative=count($listsalesrepresentatives);
if ($nbofsalesrepresentative > 3) // We print only number if ($nbofsalesrepresentative > 3) // We print only number
{ {
print '<a href="'.DOL_URL_ROOT.'/societe/commerciaux.php?socid='.$companystatic->id.'">';
print $nbofsalesrepresentative; print $nbofsalesrepresentative;
print '</a>';
} }
else if ($nbofsalesrepresentative > 0) else if ($nbofsalesrepresentative > 0)
{ {

View File

@ -706,9 +706,7 @@ while ($i < min($num,$limit))
$nbofsalesrepresentative=count($listsalesrepresentatives); $nbofsalesrepresentative=count($listsalesrepresentatives);
if ($nbofsalesrepresentative > 3) // We print only number if ($nbofsalesrepresentative > 3) // We print only number
{ {
print '<a href="'.DOL_URL_ROOT.'/societe/commerciaux.php?socid='.$socstatic->id.'">';
print $nbofsalesrepresentative; print $nbofsalesrepresentative;
print '</a>';
} }
else if ($nbofsalesrepresentative > 0) else if ($nbofsalesrepresentative > 0)
{ {

View File

@ -747,9 +747,7 @@ while ($i < min($num,$limit))
$nbofsalesrepresentative=count($listsalesrepresentatives); $nbofsalesrepresentative=count($listsalesrepresentatives);
if ($nbofsalesrepresentative > 3) // We print only number if ($nbofsalesrepresentative > 3) // We print only number
{ {
print '<a href="'.DOL_URL_ROOT.'/societe/commerciaux.php?socid='.$socstatic->id.'">';
print $nbofsalesrepresentative; print $nbofsalesrepresentative;
print '</a>';
} }
else if ($nbofsalesrepresentative > 0) else if ($nbofsalesrepresentative > 0)
{ {

View File

@ -306,9 +306,7 @@ abstract class ActionsCardCommon
$nbofsalesrepresentative=count($listsalesrepresentatives); $nbofsalesrepresentative=count($listsalesrepresentatives);
if ($nbofsalesrepresentative > 3) // We print only number if ($nbofsalesrepresentative > 3) // We print only number
{ {
$this->tpl['sales_representatives'].= '<a href="'.DOL_URL_ROOT.'/societe/commerciaux.php?socid='.$this->object->id.'">';
$this->tpl['sales_representatives'].= $nbofsalesrepresentative; $this->tpl['sales_representatives'].= $nbofsalesrepresentative;
$this->tpl['sales_representatives'].= '</a>';
} }
else if ($nbofsalesrepresentative > 0) else if ($nbofsalesrepresentative > 0)
{ {