* Modify dynamic back link problem.

This commit is contained in:
tianshujie
2021-08-31 09:12:58 +08:00
parent 9b5e65973e
commit f459105129
5 changed files with 8 additions and 8 deletions
+1 -5
View File
@@ -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']);
+1
View File
@@ -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);
+2 -2
View File
@@ -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>
+1
View File
@@ -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))
{
+3 -1
View File
@@ -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);