Fix link on project ref on task list must jump to tab task
This commit is contained in:
parent
39aede4071
commit
b5c047d9a5
@ -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>';
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user