* Replace setcookie function to helper::setcookie.

This commit is contained in:
lishuo
2023-05-11 15:36:23 +08:00
parent 2bc55ba565
commit 5a1ab3e24c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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")));
}