From 04c97d26959e69e859f91b430cce7bf562ed6b32 Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 26 Apr 2021 09:05:47 +0200 Subject: [PATCH] FIX combo Prospect / Customers / Supplier in society list --- htdocs/core/class/html.formcompany.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formcompany.class.php b/htdocs/core/class/html.formcompany.class.php index 1569ee8af83..a23c5460b2d 100644 --- a/htdocs/core/class/html.formcompany.class.php +++ b/htdocs/core/class/html.formcompany.class.php @@ -971,6 +971,10 @@ class FormCompany extends Form { global $conf, $langs; + if (!empty($conf->global->SOCIETE_DISABLE_PROSPECTS) && !empty($conf->global->SOCIETE_DISABLE_CUSTOMERS) && empty($conf->fournisseur->enabled)) + { + return '' ; + } $out = '