Add option PROJECT_OPEN_ALWAYS_ON_TAB
This commit is contained in:
parent
e9c405182d
commit
a6708009d7
@ -1044,6 +1044,9 @@ class Project extends CommonObject
|
|||||||
if (!empty($conf->dol_no_mouse_hover)) $notooltip = 1; // Force disable tooltips
|
if (!empty($conf->dol_no_mouse_hover)) $notooltip = 1; // Force disable tooltips
|
||||||
|
|
||||||
$result = '';
|
$result = '';
|
||||||
|
if (! empty($conf->global->PROJECT_OPEN_ALWAYS_ON_TAB)) {
|
||||||
|
$option = $conf->global->PROJECT_OPEN_ALWAYS_ON_TAB;
|
||||||
|
}
|
||||||
|
|
||||||
$label = '';
|
$label = '';
|
||||||
if ($option != 'nolink') $label = '<u>'.$langs->trans("Project").'</u>';
|
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;
|
$url = DOL_URL_ROOT.'/projet/tasks.php?id='.$this->id;
|
||||||
}
|
}
|
||||||
|
elseif ($option == 'preview')
|
||||||
|
{
|
||||||
|
$url = DOL_URL_ROOT.'/projet/element.php?id='.$this->id;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$url = DOL_URL_ROOT.'/projet/card.php?id='.$this->id;
|
$url = DOL_URL_ROOT.'/projet/card.php?id='.$this->id;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user