From dbd56bc03eef6aa6d3ec50b9e321cb30945e4415 Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 13 Apr 2021 11:00:28 +0200 Subject: [PATCH] FIX: mask selector fournisseur if module not activate --- htdocs/societe/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index 0df74bc166e..3a337e3e7f3 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -676,7 +676,7 @@ if (empty($type) || $type == 'c' || $type == 'p') } if (empty($type) || $type == 'f') { - if (!empty($conf->categorie->enabled) && $user->rights->categorie->lire) + if (!empty($conf->fournisseur->enabled) && !empty($conf->categorie->enabled) && $user->rights->categorie->lire) { require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php'; $moreforfilter .= '
';