Fix link on project ref on task list must jump to tab task

This commit is contained in:
Laurent Destailleur 2016-01-21 15:15:26 +01:00
parent 39aede4071
commit b5c047d9a5
2 changed files with 10 additions and 3 deletions

View File

@ -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>';
}

View File

@ -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