Skip to content
Snippets Groups Projects
Commit 8bf1fde5 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

New: Can set page to use for getNomUrl of project.

parent 8985d60c
Branches
No related tags found
No related merge requests found
...@@ -765,10 +765,18 @@ class Project extends CommonObject ...@@ -765,10 +765,18 @@ class Project extends CommonObject
$lienfin = ''; $lienfin = '';
if ($option != 'nolink') if ($option != 'nolink')
{
if (preg_match('/\.php$/',$option))
{
$lien = '<a href="' . dol_buildpath($option,1) . '?id=' . $this->id . '">';
$lienfin = '</a>';
}
else
{ {
$lien = '<a href="' . DOL_URL_ROOT . '/projet/fiche.php?id=' . $this->id . '">'; $lien = '<a href="' . DOL_URL_ROOT . '/projet/fiche.php?id=' . $this->id . '">';
$lienfin = '</a>'; $lienfin = '</a>';
} }
}
$picto = 'projectpub'; $picto = 'projectpub';
if (!$this->public) $picto = 'project'; if (!$this->public) $picto = 'project';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment