Remove project_id from task links

A few were missed in #4892, this lets URL rewriting work everywhere it should
This commit is contained in:
Sam Edwards 2023-07-13 17:42:53 -07:00 committed by Frédéric Guillot
parent a39cc49035
commit b5e2061359
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
<td class="column-60"> <td class="column-60">
<?= $this->url->link( <?= $this->url->link(
$this->text->e('#'.$link['task_id'].' '.$link['title']), $this->text->e('#'.$link['task_id'].' '.$link['title']),
'TaskViewController', 'show', array('task_id' => $link['task_id'], 'project_id' => $link['project_id']), 'TaskViewController', 'show', array('task_id' => $link['task_id']),
false, false,
$link['is_active'] ? '' : 'task-link-closed' $link['is_active'] ? '' : 'task-link-closed'
) ?> ) ?>

View File

@ -1,4 +1,4 @@
<form method="post" action="<?= $this->url->href('TaskModificationController', 'update', array('task_id' => $task['id'], 'project_id' => $project['id'])) ?>"> <form method="post" action="<?= $this->url->href('TaskModificationController', 'update', array('task_id' => $task['id'])) ?>">
<?= $this->form->csrf() ?> <?= $this->form->csrf() ?>
<?= $this->form->hidden('id', $values) ?> <?= $this->form->hidden('id', $values) ?>
<?= $this->form->hidden('project_id', $values) ?> <?= $this->form->hidden('project_id', $values) ?>

View File

@ -45,7 +45,7 @@
$this->text->e('#'.$link['task_id'].' '.$link['title']), $this->text->e('#'.$link['task_id'].' '.$link['title']),
'TaskViewController', 'TaskViewController',
'show', 'show',
array('task_id' => $link['task_id'], 'project_id' => $link['project_id']), array('task_id' => $link['task_id']),
false, false,
$link['is_active'] ? '' : 'task-link-closed' $link['is_active'] ? '' : 'task-link-closed'
) ?> ) ?>