Fix: Ship button available only if module shipping is enabled
This commit is contained in:
parent
8fd69cadb3
commit
00a1eb6b3d
@ -2107,6 +2107,8 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Ship
|
// Ship
|
||||||
|
if ($conf->expedition->enabled)
|
||||||
|
{
|
||||||
if ($commande->statut > 0 && $commande->statut < 3 && $commande->getNbOfProductsLines() > 0)
|
if ($commande->statut > 0 && $commande->statut < 3 && $commande->getNbOfProductsLines() > 0)
|
||||||
{
|
{
|
||||||
if ($user->rights->expedition->creer)
|
if ($user->rights->expedition->creer)
|
||||||
@ -2126,7 +2128,8 @@ else
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a class="butActionRefused" href="#">'.$langs->trans('ShipProduct').'</a>';
|
print '<a class="butActionRefused" href="#" title="'.dol_escape_htmltag($langs->trans("NotAllowed")).'">'.$langs->trans('ShipProduct').'</a>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user