Add option PROJECT_OPEN_ALWAYS_ON_TAB

This commit is contained in:
Laurent Destailleur 2020-05-12 14:53:03 +02:00
parent e9c405182d
commit a6708009d7

View File

@ -1044,6 +1044,9 @@ class Project extends CommonObject
if (!empty($conf->dol_no_mouse_hover)) $notooltip = 1; // Force disable tooltips
$result = '';
if (! empty($conf->global->PROJECT_OPEN_ALWAYS_ON_TAB)) {
$option = $conf->global->PROJECT_OPEN_ALWAYS_ON_TAB;
}
$label = '';
if ($option != 'nolink') $label = '<u>'.$langs->trans("Project").'</u>';
@ -1073,6 +1076,10 @@ class Project extends CommonObject
{
$url = DOL_URL_ROOT.'/projet/tasks.php?id='.$this->id;
}
elseif ($option == 'preview')
{
$url = DOL_URL_ROOT.'/projet/element.php?id='.$this->id;
}
else
{
$url = DOL_URL_ROOT.'/projet/card.php?id='.$this->id;