* Finish task #5067.

This commit is contained in:
Yagami
2018-11-08 16:15:09 +08:00
parent cfa64fdc4e
commit a478cfdba5
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -297,7 +297,7 @@ class bug extends control
if(defined('RUN_MODE') && RUN_MODE == 'api') $this->send(array('status' => 'success', 'data' => $bugID));
$location = $this->createLink('bug', 'browse', "productID={$this->post->product}&branch=$branch&type=byModule&param={$this->post->module}");
$response['locate'] = isset($_SESSION['bugList']) ? $this->session->bugList : $location;
$response['locate'] = $location;
$this->send($response);
}
+2 -1
View File
@@ -120,7 +120,8 @@ class story extends control
$this->send($response);
}
$response['locate'] = $this->createLink('project', 'story', "projectID=$projectID");
$moduleID = $this->post->module ? $this->post->module : 0;
$response['locate'] = $this->createLink('project', 'story', "projectID=$projectID&branch=&browseType=byModule&moduleID=$moduleID");
if($projectID == 0) $response['locate'] = $this->createLink('story', 'view', "storyID=$storyID");
$this->send($response);
}
+2
View File
@@ -146,6 +146,8 @@ class task extends control
}
elseif($this->post->after == 'toTaskList')
{
$moduleID = $this->post->module ? $this->post->module : 0;
$taskLink = $this->createLink('project', 'task', "projectID=$projectID&browseType=byModule&param=$moduleID");
$response['locate'] = $taskLink;
$this->send($response);
}