* finish task #6760.

This commit is contained in:
wangyidong
2019-12-16 17:00:05 +08:00
parent 714835adaf
commit a9f4bc8edd
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -299,7 +299,7 @@ class bug extends control
if(defined('RUN_MODE') && RUN_MODE == 'api') $this->send(array('status' => 'success', 'data' => $bugID));
setcookie('bugModule', (int)$this->post->module, 0, $this->config->webRoot, '', false, false);
setcookie('bugModule', 0, 0, $this->config->webRoot, '', false, false);
$location = $this->createLink('bug', 'browse', "productID={$this->post->product}&branch=$branch&browseType=unclosed&param=0&orderBy=id_desc");
if($this->app->getViewType() == 'xhtml') $location = $this->createLink('bug', 'view', "bugID=$bugID");
$response['locate'] = $location;
+3 -2
View File
@@ -123,10 +123,10 @@ class story extends control
}
$moduleID = $this->post->module ? $this->post->module : 0;
$response['locate'] = $this->createLink('project', 'story', "projectID=$projectID&orderBy=&browseType=byModule&moduleID=$moduleID");
$response['locate'] = $this->createLink('project', 'story', "projectID=$projectID&orderBy=&browseType=byModule&moduleID=0");
if($projectID == 0)
{
setcookie('storyModule', (int)$moduleID, 0, $this->config->webRoot, '', false, false);
setcookie('storyModule', 0, 0, $this->config->webRoot, '', false, false);
$productID = $this->post->product ? $this->post->product : $productID;
$branchID = $this->post->branch ? $this->post->branch : $branch;
$response['locate'] = $this->createLink('product', 'browse', "productID=$productID&branch=$branchID&browseType=unclosed&param=0&orderBy=id_desc");
@@ -307,6 +307,7 @@ class story extends control
die(js::locate(inlink('view', "storyID=$storyID"), 'parent'));
}
setcookie('storyModule', 0, 0, $this->config->webRoot, '', false, false);
die(js::locate($this->createLink('product', 'browse', "productID=$productID&branch=$branch"), 'parent'));
}
+1 -1
View File
@@ -155,7 +155,7 @@ class task extends control
}
elseif($this->post->after == 'toTaskList')
{
setcookie('moduleBrowseParam', (int)$this->post->module, 0, $this->config->webRoot, '', false, false);
setcookie('moduleBrowseParam', 0, 0, $this->config->webRoot, '', false, false);
$taskLink = $this->createLink('project', 'task', "projectID=$projectID&status=unclosed&param=0&orderBy=id_desc");
$response['locate'] = $taskLink;
$this->send($response);
+1 -1
View File
@@ -243,7 +243,7 @@ class testcase extends control
/* If link from no head then reload. */
if(isonlybody()) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true));
setcookie('caseModule', (int)$this->post->module, 0, $this->config->webRoot, '', false, false);
setcookie('caseModule', 0, 0, $this->config->webRoot, '', false, false);
$response['locate'] = $this->createLink('testcase', 'browse', "productID={$this->post->product}&branch={$this->post->branch}&browseType=all&param=0&orderBy=id_desc");
$this->send($response);
}