From 306bad31be89299f8fbc0cd843361e81801806dc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 Apr 2009 22:42:39 +0000 Subject: [PATCH] Fix: Product/service choice not enabled if modules not enabled. --- htdocs/html.form.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index ba6d2bc4194..dfe3aa23c39 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -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 '