diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index aca5fe67d0de99aa9a979851a2abf64dac018b09..7548f4f2e0a114c035ffb695406d7941becc41c8 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -894,7 +894,14 @@ class Project extends CommonObject if (preg_match('/\.php$/',$option)) { $link = '<a href="' . dol_buildpath($option,1) . '?id=' . $this->id . $linkclose; $linkend = '</a>'; - } else { + } + else if ($option == 'task') + { + $link = '<a href="' . DOL_URL_ROOT . '/projet/tasks.php?id=' . $this->id . $linkclose; + $linkend = '</a>'; + } + else + { $link = '<a href="' . DOL_URL_ROOT . '/projet/card.php?id=' . $this->id . $linkclose; $linkend = '</a>'; } diff --git a/htdocs/projet/tasks/list.php b/htdocs/projet/tasks/list.php index 037360bb4de7b667c51a16fe86227a7e634d870a..e140ee2f672c61c3a18353782d4016cab3c7c2e6 100644 --- a/htdocs/projet/tasks/list.php +++ b/htdocs/projet/tasks/list.php @@ -537,7 +537,7 @@ if ($resql) if (! empty($arrayfields['p.ref']['checked'])) { print '<td class="nowrap">'; - print $projectstatic->getNomUrl(1); + print $projectstatic->getNomUrl(1, 'task'); print '</td>'; } // Title @@ -574,7 +574,7 @@ if ($resql) if (! empty($arrayfields['t.ref']['checked'])) { print '<td>'; - print $taskstatic->getNomUrl(1); + print $taskstatic->getNomUrl(1,'withproject'); print '</td>'; } // Label