From 7a6a462ef20cc553c2f48a064b5ee1adf53cd3c1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 3 May 2012 22:11:36 +0200 Subject: [PATCH] Fix: Bad cr --- htdocs/fourn/facture/fiche.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index 93e77efba18..40d9de1a724 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -1555,8 +1555,10 @@ else } else { + $forceall=1; // For suppliers, we always show all types print $form->select_type_of_lines($object->lines[$i]->product_type,'type',1); - if ($conf->product->enabled && $conf->service->enabled) print '
'; + if ($forceall || ($conf->product->enabled && $conf->service->enabled) + || (empty($conf->product->enabled) && empty($conf->service->enabled))) print '
'; } // Description - Editor wysiwyg