Fix minor issues
This commit is contained in:
@@ -140,7 +140,7 @@ class Comment extends Base
|
||||
$this->session->flashError(t('Unable to update your comment.'));
|
||||
}
|
||||
|
||||
$this->response->redirect($this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), 'comment-'.$comment['id']);
|
||||
$this->response->redirect($this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), 'comment-'.$comment['id']));
|
||||
}
|
||||
|
||||
$this->edit($values, $errors);
|
||||
@@ -181,6 +181,6 @@ class Comment extends Base
|
||||
$this->session->flashError(t('Unable to remove this comment.'));
|
||||
}
|
||||
|
||||
$this->response->redirect($this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), 'comments');
|
||||
$this->response->redirect($this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), 'comments'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ class Taskduplication extends Base
|
||||
if ($this->request->isPost()) {
|
||||
|
||||
$values = $this->request->getValues();
|
||||
list($valid, $errors) = $this->taskValidator->validateProjectModification($values);
|
||||
list($valid,) = $this->taskValidator->validateProjectModification($values);
|
||||
|
||||
if ($valid && $this->taskDuplication->moveToProject($task['id'],
|
||||
$values['project_id'],
|
||||
@@ -81,7 +81,7 @@ class Taskduplication extends Base
|
||||
if ($this->request->isPost()) {
|
||||
|
||||
$values = $this->request->getValues();
|
||||
list($valid, $errors) = $this->taskValidator->validateProjectModification($values);
|
||||
list($valid,) = $this->taskValidator->validateProjectModification($values);
|
||||
|
||||
if ($valid && $this->taskDuplication->duplicateToProject($task['id'],
|
||||
$values['project_id'],
|
||||
@@ -104,6 +104,8 @@ class Taskduplication extends Base
|
||||
* Choose destination when move/copy task to another project
|
||||
*
|
||||
* @access private
|
||||
* @param array $task
|
||||
* @param string $template
|
||||
*/
|
||||
private function chooseDestination(array $task, $template)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user