* Finish task #5067.
This commit is contained in:
@@ -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¶m={$this->post->module}");
|
||||
$response['locate'] = isset($_SESSION['bugList']) ? $this->session->bugList : $location;
|
||||
$response['locate'] = $location;
|
||||
$this->send($response);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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¶m=$moduleID");
|
||||
$response['locate'] = $taskLink;
|
||||
$this->send($response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user