Use IsModEnabled
This commit is contained in:
parent
1f3fd45570
commit
186bd8b731
@ -145,7 +145,7 @@ if ($object->id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Thirdparty
|
// Thirdparty
|
||||||
if (!empty($conf->societe->enabled)) {
|
if (isModEnabled('societe')) {
|
||||||
$morehtmlref .= '<br>'.$langs->trans('ThirdParty');
|
$morehtmlref .= '<br>'.$langs->trans('ThirdParty');
|
||||||
/*if ($action != 'editcustomer' && $object->fk_statut < 8 && !$user->socid && $user->rights->ticket->write) {
|
/*if ($action != 'editcustomer' && $object->fk_statut < 8 && !$user->socid && $user->rights->ticket->write) {
|
||||||
$morehtmlref.='<a class="editfielda" href="' . $url_page_current . '?action=editcustomer&token='.newToken().'&track_id=' . $object->track_id . '">' . img_edit($langs->transnoentitiesnoconv('Edit'), 1) . '</a>';
|
$morehtmlref.='<a class="editfielda" href="' . $url_page_current . '?action=editcustomer&token='.newToken().'&track_id=' . $object->track_id . '">' . img_edit($langs->transnoentitiesnoconv('Edit'), 1) . '</a>';
|
||||||
@ -159,7 +159,7 @@ if ($object->id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Project
|
// Project
|
||||||
if (!empty($conf->project->enabled)) {
|
if (isModEnabled('project')) {
|
||||||
$langs->load("projects");
|
$langs->load("projects");
|
||||||
$morehtmlref .= '<br>'.$langs->trans('Project').' ';
|
$morehtmlref .= '<br>'.$langs->trans('Project').' ';
|
||||||
if ($user->rights->ticket->write) {
|
if ($user->rights->ticket->write) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user