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
No related branches found
No related tags found
No related merge requests found
......@@ -766,8 +766,16 @@ class Project extends CommonObject
if ($option != 'nolink')
{
$lien = '<a href="' . DOL_URL_ROOT . '/projet/fiche.php?id=' . $this->id . '">';
$lienfin = '</a>';
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 . '">';
$lienfin = '</a>';
}
}
$picto = 'projectpub';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment