Merge pull request #3893 from fmarcet/3.8
FIX: Not showing category selector
This commit is contained in:
commit
63d447d1a7
@ -284,7 +284,7 @@ if ($result)
|
|||||||
$moreforfilter.='</div>';
|
$moreforfilter.='</div>';
|
||||||
}
|
}
|
||||||
// If the user can view prospects other than his'
|
// If the user can view prospects other than his'
|
||||||
if ($conf->categorie->enabled && $user->rights->produit->lire)
|
if ($conf->categorie->enabled && ($user->rights->produit->lire || $user->rights->service->lire))
|
||||||
{
|
{
|
||||||
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
||||||
$moreforfilter.='<div class="divsearchfield">';
|
$moreforfilter.='<div class="divsearchfield">';
|
||||||
|
|||||||
@ -281,7 +281,7 @@ if ($resql)
|
|||||||
$moreforfilter.='</div>';
|
$moreforfilter.='</div>';
|
||||||
}
|
}
|
||||||
// If the user can view prospects other than his'
|
// If the user can view prospects other than his'
|
||||||
if ($conf->categorie->enabled && $user->rights->produit->lire)
|
if ($conf->categorie->enabled && ($user->rights->produit->lire || $user->rights->service->lire))
|
||||||
{
|
{
|
||||||
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
||||||
$moreforfilter.='<div class="divsearchfield">';
|
$moreforfilter.='<div class="divsearchfield">';
|
||||||
|
|||||||
@ -296,7 +296,7 @@ if ($resql)
|
|||||||
$moreforfilter.='</div>';
|
$moreforfilter.='</div>';
|
||||||
}
|
}
|
||||||
// If the user can view prospects other than his'
|
// If the user can view prospects other than his'
|
||||||
if ($conf->categorie->enabled && $user->rights->produit->lire)
|
if ($conf->categorie->enabled && ($user->rights->produit->lire || $user->rights->service->lire))
|
||||||
{
|
{
|
||||||
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
||||||
$moreforfilter.='<div class="divsearchfield">';
|
$moreforfilter.='<div class="divsearchfield">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user