Fix: Ship button available only if module shipping is enabled

This commit is contained in:
Laurent Destailleur 2010-06-16 22:24:55 +00:00
parent 8fd69cadb3
commit 00a1eb6b3d

View File

@ -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>';
}
} }
} }