FIX tag selector error if supplier disable

This commit is contained in:
Robin 2021-04-22 17:09:33 +02:00
parent b00628118a
commit 379cb74cd9

View File

@ -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 .= '</div>';
}
if (empty($type) || $type == 'f')
if (!empty($conf->fournisseur->enabled) && (empty($type) || $type == 'f'))
{
$moreforfilter .= '<div class="divsearchfield">';
$moreforfilter .= $langs->trans('SuppliersCategoriesShort').': ';