Fix: Product/service choice not enabled if modules not enabled.

This commit is contained in:
Laurent Destailleur 2009-04-20 22:42:39 +00:00
parent 0442049531
commit 306bad31be

View File

@ -374,7 +374,9 @@ class Form
global $db,$langs,$user,$conf;
$langs->load("trips");
if ($conf->produit->enabled && $conf->service->enabled)
// If product & services are enabled or both disabled.
if (($conf->produit->enabled && $conf->service->enabled)
|| (empty($conf->produit->enabled) && empty($conf->service->enabled)))
{
print $langs->trans("Type").': ';
print '<select class="flat" name="'.$htmlname.'">';