diff --git a/module/bug/control.php b/module/bug/control.php
index 0980e3e697..de3401f335 100755
--- a/module/bug/control.php
+++ b/module/bug/control.php
@@ -510,6 +510,7 @@ class bug extends control
if(isset($bugID))
{
$bug = $this->bug->getById($bugID);
+
extract((array)$bug);
$executionID = $bug->execution;
$moduleID = $bug->module;
@@ -610,8 +611,9 @@ class bug extends control
/* Replace language. */
if(!empty($project->model) and $project->model == 'waterfall') $this->lang->bug->execution = str_replace($this->lang->executionCommon, $this->lang->project->stage, $this->lang->bug->execution);
-
$projectModel = $project->model;
+
+ if(!$project->multiple) $executionID = $this->loadModel('execution')->getNoMultipleID($projectID);
}
}
@@ -655,7 +657,7 @@ class bug extends control
$this->view->moduleID = (int)$moduleID;
$this->view->projectID = $projectID;
$this->view->projectModel = $projectModel;
- $this->view->executionID = $executionID;
+ $this->view->execution = $execution;
$this->view->taskID = $taskID;
$this->view->storyID = $storyID;
$this->view->buildID = $buildID;
@@ -1034,6 +1036,7 @@ class bug extends control
$projectID = $bug->project;
$currentModuleID = $bug->module;
$product = $this->loadModel('product')->getByID($productID);
+ $execution = $this->loadModel('execution')->getByID($executionID);
$this->bug->checkBugExecutionPriv($bug);
if(!isset($this->products[$bug->product]))
@@ -1043,14 +1046,16 @@ class bug extends control
}
/* Set the menu. */
- if($this->app->tab == 'project') $this->loadModel('project')->setMenu($bug->project);
+ if($this->app->tab == 'project') $this->loadModel('project')->setMenu($bug->project);
if($this->app->tab == 'execution') $this->loadModel('execution')->setMenu($bug->execution);
- if($this->app->tab == 'qa') $this->qa->setMenu($this->products, $productID, $bug->branch);
+ if($this->app->tab == 'qa') $this->qa->setMenu($this->products, $productID, $bug->branch);
if($this->app->tab == 'devops')
{
session_write_close();
+
$repos = $this->loadModel('repo')->getRepoPairs('project', $bug->project);
$this->repo->setMenu($repos);
+
$this->lang->navGroup->bug = 'devops';
}
@@ -1066,9 +1071,10 @@ class bug extends control
}
if($this->app->tab == 'project')
{
- $products = array();
+ $products = array();
$productList = $this->config->CRProduct ? $this->product->getOrderedProducts('all', 40, $bug->project) : $this->product->getOrderedProducts('normal', 40, $bug->project);
foreach($productList as $productInfo) $products[$productInfo->id] = $productInfo->name;
+
$this->view->products = $products;
}
@@ -1158,6 +1164,7 @@ class bug extends control
$this->view->bug = $bug;
$this->view->productID = $productID;
$this->view->product = $product;
+ $this->view->execution = $execution;
$this->view->productBugs = $productBugs;
$this->view->productName = $this->products[$productID];
$this->view->plans = $this->loadModel('productplan')->getPairs($productID, $bug->branch, '', true);
diff --git a/module/bug/lang/zh-cn.php b/module/bug/lang/zh-cn.php
index e437a9bfb5..bb56a13546 100644
--- a/module/bug/lang/zh-cn.php
+++ b/module/bug/lang/zh-cn.php
@@ -191,8 +191,8 @@ global $config;
/* legend列表。*/
$lang->bug->legendBasicInfo = '基本信息';
$lang->bug->legendAttatch = '附件';
-$lang->bug->legendPRJExecStoryTask = $config->systemMode == 'new' ? "项目/" . $lang->executionCommon . "/{$lang->SRCommon}/任务" : $lang->executionCommon . "/{$lang->SRCommon}/任务";
-$lang->bug->legendExecStoryTask = $lang->executionCommon . "/{$lang->SRCommon}/任务";
+$lang->bug->legendPRJExecStoryTask = "项目/{$lang->executionCommon}/{$lang->SRCommon}/任务";
+$lang->bug->legendExecStoryTask = "项目/{$lang->SRCommon}/任务";
$lang->bug->lblTypeAndSeverity = '类型/严重程度';
$lang->bug->lblSystemBrowserAndHardware = '系统/浏览器';
$lang->bug->legendSteps = '重现步骤';
diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php
index b2117b02da..c5e19cb618 100644
--- a/module/bug/view/create.html.php
+++ b/module/bug/view/create.html.php
@@ -29,7 +29,7 @@ js::set('moduleID', $moduleID);
js::set('tab', $this->app->tab);
js::set('requiredFields', $config->bug->create->requiredFields);
js::set('showFields', $showFields);
-if($this->app->tab == 'execution') js::set('objectID', $executionID);
+if($this->app->tab == 'execution') js::set('objectID', zget($execution, 'id', ''));
if($this->app->tab == 'project') js::set('objectID', $projectID);
?>
@@ -116,10 +116,11 @@ if($this->app->tab == 'project') js::set('objectID', $projectID);
-
+ multiple) ? 'hidden' : '';?>
+
bug->kanban : $lang->bug->execution;?>
-
+
diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php
index 1ef01b1820..c2fd0b8526 100644
--- a/module/bug/view/edit.html.php
+++ b/module/bug/view/edit.html.php
@@ -207,16 +207,16 @@ if($this->app->tab == 'project') js::set('objectID', $bug->project);
systemMode == 'class' ? $lang->bug->legendExecStoryTask : $lang->bug->legendPRJExecStoryTask;?>