From c9cc9e7ec2cb519069871770afe1aa32cf15fce4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 29 Jan 2011 15:56:45 +0000 Subject: [PATCH] Fix: Do not show supplier code if module not enabled --- htdocs/societe/soc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 1643ee807a5..d3f675ce609 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -1378,7 +1378,8 @@ else print ''; } - if ($soc->fournisseur) { + if ($conf->fournisseur->enabled && $soc->fournisseur) + { print ''; print $langs->trans('SupplierCode').''; print $soc->code_fournisseur;