* Modify dynamic back link problem.
This commit is contained in:
@@ -490,11 +490,7 @@ class baseHTML
|
||||
if(helper::inOnlyBodyMode()) return false;
|
||||
|
||||
global $lang, $app, $config;
|
||||
if(empty($label))
|
||||
{
|
||||
global $lang, $config;
|
||||
$label = $lang->goback;
|
||||
}
|
||||
if(empty($label)) $label = $lang->goback;
|
||||
|
||||
$tab = $_COOKIE['tab'];
|
||||
$referer = strtolower($_SERVER['HTTP_REFERER']);
|
||||
|
||||
@@ -2560,6 +2560,7 @@ class execution extends control
|
||||
$this->session->set('bugList', $uri, 'qa');
|
||||
$this->session->set('caseList', $uri, 'qa');
|
||||
$this->session->set('testtaskList', $uri, 'qa');
|
||||
$this->session->set('reportList', $uri, 'qa');
|
||||
|
||||
/* use first execution if executionID does not exist. */
|
||||
if(!isset($this->executions[$executionID])) $executionID = key($this->executions);
|
||||
|
||||
@@ -55,11 +55,11 @@
|
||||
<?php
|
||||
if($config->systemMode == 'new')
|
||||
{
|
||||
echo html::a($this->createLink('project', 'index', 'project=' . $project->id), $project->name, '_parent');
|
||||
echo html::a($this->createLink('project', 'index', 'project=' . $project->id), $project->name);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo html::a($this->createLink('execution', 'task', 'project=' . $project->id), $project->name, '_parent');
|
||||
echo html::a($this->createLink('execution', 'task', 'project=' . $project->id), $project->name);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
@@ -743,6 +743,7 @@ class project extends control
|
||||
$this->session->set('bugList', $uri, 'qa');
|
||||
$this->session->set('caseList', $uri, 'qa');
|
||||
$this->session->set('testtaskList', $uri, 'qa');
|
||||
$this->session->set('reportList', $uri, 'qa');
|
||||
|
||||
if(isset($this->config->maxVersion))
|
||||
{
|
||||
|
||||
@@ -898,7 +898,9 @@ class story extends control
|
||||
*/
|
||||
public function view($storyID, $version = 0, $param = 0)
|
||||
{
|
||||
$this->session->set('productList', $this->app->getURI(true) . "#app={$this->app->tab}", 'product');
|
||||
$uri = $this->app->getURI(true);
|
||||
$this->session->set('productList', $uri . "#app={$this->app->tab}", 'product');
|
||||
$this->session->set('productPlanList', $uri, 'product');
|
||||
|
||||
$storyID = (int)$storyID;
|
||||
$story = $this->story->getById($storyID, $version, true);
|
||||
|
||||
Reference in New Issue
Block a user