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:
parent
a39cc49035
commit
b5e2061359
|
|
@ -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'
|
||||||
) ?>
|
) ?>
|
||||||
|
|
|
||||||
|
|
@ -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) ?>
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
) ?>
|
) ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue