Merge pull request #17250 from Robin-Yann/fix-societe-list-fournisseur

FIX: mask selector fournisseur if module not activate
This commit is contained in:
Laurent Destailleur 2021-04-13 12:05:31 +02:00 committed by GitHub
commit 41dc69e05a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 .= '<div class="divsearchfield">';