From 379cb74cd921764f522f4331d678a2a36d24037c Mon Sep 17 00:00:00 2001 From: Robin Date: Thu, 22 Apr 2021 17:09:33 +0200 Subject: [PATCH] FIX tag selector error if supplier disable --- htdocs/contact/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php index 00c74544d17..ff278ccd719 100644 --- a/htdocs/contact/list.php +++ b/htdocs/contact/list.php @@ -575,7 +575,7 @@ if (!empty($conf->categorie->enabled) && $user->rights->categorie->lire) $moreforfilter .= $formother->select_categories(Categorie::TYPE_CUSTOMER, $search_categ_thirdparty, 'search_categ_thirdparty', 1); $moreforfilter .= ''; } - if (empty($type) || $type == 'f') + if (!empty($conf->fournisseur->enabled) && (empty($type) || $type == 'f')) { $moreforfilter .= '
'; $moreforfilter .= $langs->trans('SuppliersCategoriesShort').': ';