diff --git a/module/task/control.php b/module/task/control.php index f43abed50d..9fe04e0100 100755 --- a/module/task/control.php +++ b/module/task/control.php @@ -81,7 +81,7 @@ class task extends control $columnID = isset($output['columnID']) ? (int)$output['columnID'] : 0; $this->task->afterCreate($task, $taskIdList, $bugID, $todoID, $testTasks); $this->task->updateKanbanData($execution, $task, (int)$this->post->lane, $columnID); - setcookie('lastTaskModule', (int)$this->post->module, $this->config->cookieLife, $this->config->webRoot, '', $this->config->cookieSecure, true); + helper::setcookie('lastTaskModule', (int)$this->post->module); /* Get the information returned after a task is created. */ $response = $this->taskZen->responseAfterCreate($task, $execution, $this->post->after); @@ -461,7 +461,7 @@ class task extends control $execution = $this->execution->getById($task->execution); if(!isonlybody() and $execution->type == 'kanban') { - setcookie('taskToOpen', $taskID, 0, $this->config->webRoot, '', $this->config->cookieSecure, true); + helper::setcookie('taskToOpen', $taskID); return print(js::locate($this->createLink('execution', 'kanban', "executionID=$execution->id"))); } diff --git a/module/task/zen.php b/module/task/zen.php index 54113fefae..ce50b11a12 100644 --- a/module/task/zen.php +++ b/module/task/zen.php @@ -779,7 +779,7 @@ class taskZen extends task /* Set the response to return task list. */ elseif($afterChoice == 'toTaskList') { - setcookie('moduleBrowseParam', 0, 0, $this->config->webRoot, '', $this->config->cookieSecure, true); + helper::setcookie('moduleBrowseParam', 0); $response['load'] = $this->createLink('execution', 'task', "executionID={$executionID}&status=unclosed¶m=0&orderBy=id_desc"); } /* Set the response to return story list. */