From 70f3da80df333960fa02b34e10da049a0bbe364c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 13 Oct 2015 14:21:00 +0200 Subject: [PATCH] FIX Option SOCIETE_DISABLE_PROSPECTS not supported into title of box --- htdocs/comm/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php index 9e9c0235861..79dfafa7a76 100644 --- a/htdocs/comm/index.php +++ b/htdocs/comm/index.php @@ -331,7 +331,11 @@ if (! empty($conf->societe->enabled) && $user->rights->societe->lire) print ''; print ''; - print ''; + print ''; print ''; print ''; if ($num)
'.$langs->trans("BoxTitleLastCustomersOrProspects",$max).''; + if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS) && empty($conf->global->SOCIETE_DISABLE_CUSTOMERS)) print $langs->trans("BoxTitleLastCustomersOrProspects",$max); + else if (! empty($conf->global->SOCIETE_DISABLE_CUSTOMERS)) print $langs->trans("BoxTitleLastModifiedProspects",$max); + else print $langs->trans("BoxTitleLastModifiedCustomers",$max); + print ''.$langs->trans("DateModificationShort").'