NEW MAIN_SEARCH_CATEGORY_CUSTOMER_ON_LISTS const to show category customer filter

This commit is contained in:
lvessiller 2022-05-23 09:53:17 +02:00
parent 1a183f408d
commit 18a1cbb4a0

View File

@ -638,7 +638,7 @@ if (!empty($conf->categorie->enabled) && $user->rights->categorie->lire && ($use
$moreforfilter .= '</div>';
}
// Filter on customer categories
if (!empty($conf->categorie->enabled) && $user->rights->categorie->lire) {
if (!empty($conf->global->MAIN_SEARCH_CATEGORY_CUSTOMER_ON_LISTS) && !empty($conf->categorie->enabled) && $user->rights->categorie->lire) {
$moreforfilter .= '<div class="divsearchfield">';
$tmptitle = $langs->transnoentities('CustomersProspectsCategoriesShort');
$moreforfilter .= img_picto($tmptitle, 'category', 'class="pictofixedwidth"');