From 7da4bb18eb56e6e059c031ee9971e39ead59bf93 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 11 Mar 2008 08:57:10 +0000 Subject: [PATCH] Fix: Hide propal link if module not enabled --- htdocs/comm/prospect/fiche.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/comm/prospect/fiche.php b/htdocs/comm/prospect/fiche.php index 0d79a403da7..99cf4f80244 100644 --- a/htdocs/comm/prospect/fiche.php +++ b/htdocs/comm/prospect/fiche.php @@ -483,15 +483,15 @@ if ($socid > 0) print ' '; // Action - print ''; + print ''; $actionstatic->code=$obj->acode; - $actionstatic->libelle=$obj->libelle; - $actionstatic->id=$obj->id; - print ''.$actionstatic->getNomUrl(1,16).''; + $actionstatic->libelle=$obj->libelle; + $actionstatic->id=$obj->id; + print ''.$actionstatic->getNomUrl(1,16).''; print ''; print ''; - if ($obj->propalrowid) + if ($conf->propal->enabled && $obj->propalrowid) { print ''.img_object($langs->trans("ShowPropal"),"propal"); print $langs->trans("Propal");