* adjust for with xuanxuan.

This commit is contained in:
wangyidong
2018-12-21 15:02:48 +08:00
parent 391d407c9f
commit 89efeaca7f
6 changed files with 20 additions and 13 deletions
+2 -2
View File
@@ -296,8 +296,8 @@ class bug extends control
if(defined('RUN_MODE') && RUN_MODE == 'api') $this->send(array('status' => 'success', 'data' => $bugID));
setcookie('bugModule', 0, 0, $this->config->webRoot);
$location = $this->createLink('bug', 'browse', "productID={$this->post->product}&branch=$branch");
setcookie('bugModule', (int)$this->post->module, 0, $this->config->webRoot);
$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;
$this->send($response);