* finish task #6760.
This commit is contained in:
@@ -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¶m=0&orderBy=id_desc");
|
||||
if($this->app->getViewType() == 'xhtml') $location = $this->createLink('bug', 'view', "bugID=$bugID");
|
||||
$response['locate'] = $location;
|
||||
|
||||
@@ -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¶m=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'));
|
||||
}
|
||||
|
||||
|
||||
@@ -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¶m=0&orderBy=id_desc");
|
||||
$response['locate'] = $taskLink;
|
||||
$this->send($response);
|
||||
|
||||
@@ -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¶m=0&orderBy=id_desc");
|
||||
$this->send($response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user