update code
This commit is contained in:
parent
2d2d2546de
commit
0335970820
@ -138,7 +138,7 @@ function societe_prepare_head(Societe $object)
|
|||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($conf->project->enabled) && (!empty($user->rights->projet->lire))) {
|
if (isModEnabled('project') && (!empty($user->rights->projet->lire))) {
|
||||||
$nbProject = 0;
|
$nbProject = 0;
|
||||||
// Enable caching of thirdrparty count projects
|
// Enable caching of thirdrparty count projects
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/memory.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/memory.lib.php';
|
||||||
@ -781,11 +781,11 @@ function show_projects($conf, $langs, $db, $object, $backtopage = '', $nocreatel
|
|||||||
|
|
||||||
$i = -1;
|
$i = -1;
|
||||||
|
|
||||||
if (!empty($conf->project->enabled) && $user->rights->projet->lire) {
|
if (isModEnabled('project') && $user->rights->projet->lire) {
|
||||||
$langs->load("projects");
|
$langs->load("projects");
|
||||||
|
|
||||||
$newcardbutton = '';
|
$newcardbutton = '';
|
||||||
if (!empty($conf->project->enabled) && $user->rights->projet->creer && empty($nocreatelink)) {
|
if (isModEnabled('project') && $user->rights->projet->creer && empty($nocreatelink)) {
|
||||||
$newcardbutton .= dolGetButtonTitle($langs->trans('AddProject'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/projet/card.php?socid='.$object->id.'&action=create&backtopage='.urlencode($backtopage));
|
$newcardbutton .= dolGetButtonTitle($langs->trans('AddProject'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/projet/card.php?socid='.$object->id.'&action=create&backtopage='.urlencode($backtopage));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user