diff --git a/module/build/control.php b/module/build/control.php
index bd64606a2e..e1ed16505b 100644
--- a/module/build/control.php
+++ b/module/build/control.php
@@ -56,6 +56,11 @@ class build extends control
$this->execution->setMenu($executionID);
$this->session->set('project', $execution->project);
}
+ elseif($this->app->openApp == 'qa')
+ {
+ $execution = $this->execution->getByID($executionID);
+ $executions = $this->execution->getPairs($execution->project);
+ }
$productGroups = $this->execution->getProducts($executionID);
$productID = $productID ? $productID : key($productGroups);
diff --git a/module/build/view/create.html.php b/module/build/view/create.html.php
index 6e550454db..983bb82691 100644
--- a/module/build/view/create.html.php
+++ b/module/build/view/create.html.php
@@ -42,7 +42,7 @@
@@ -43,12 +44,11 @@
actions;?> |
-
| id"), sprintf('%03d', $report->id));?> |
- id&from=$objectType"), $report->title)?> |
+ id"), $report->title)?> |
createdBy);?> |
createdDate, 2);?> |
execution ? '#' . $report->execution . $executions[$report->execution] : '';?>
@@ -70,9 +70,6 @@
-
- | testreport->noReport;?> |
-
diff --git a/module/testreport/view/edit.html.php b/module/testreport/view/edit.html.php
index a8636b8264..d235b2721f 100644
--- a/module/testreport/view/edit.html.php
+++ b/module/testreport/view/edit.html.php
@@ -114,9 +114,6 @@
-
+id);?>
+
diff --git a/module/testtask/control.php b/module/testtask/control.php
index 268ba933e6..bce40516ea 100644
--- a/module/testtask/control.php
+++ b/module/testtask/control.php
@@ -37,6 +37,8 @@ class testtask extends control
{
parent::__construct($moduleName, $methodName);
+ $this->loadModel('product');
+
/* Get product data. */
$projectID = 0;
if($this->app->openApp == 'project')
@@ -45,7 +47,7 @@ class testtask extends control
$products = $this->loadModel('project')->getProducts($projectID, false);
}
if($this->app->openApp == 'execution') $products = $this->loadModel('execution')->getProducts($this->session->execution, false);
- if($this->app->openApp == 'qa' or $this->app->openApp == 'my') $products = $this->loadModel('product')->getPairs();
+ if($this->app->openApp == 'qa' or $this->app->openApp == 'my') $products = $this->product->getPairs();
$this->view->products = $this->products = $products;
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "moduleName={$this->app->openApp}&activeMenu=testtask&projectID=$projectID")));
}
@@ -211,6 +213,10 @@ class testtask extends control
{
$this->loadModel('execution')->setMenu($executionID);
}
+ elseif($this->app->openApp == 'qa')
+ {
+ $this->loadModel('qa')->setMenu($this->products, $productID);
+ }
/* Create testtask from testtask of test.*/
$productID = $productID ? $productID : key($this->products);
@@ -219,7 +225,6 @@ class testtask extends control
/* Set menu. */
$productID = $this->product->saveState($productID, $this->products);
- $this->loadModel('qa')->setMenu($this->products, $productID);
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testtask->create;
$this->view->position[] = html::a($this->createLink('testtask', 'browse', "productID=$productID"), $this->products[$productID]);
diff --git a/module/testtask/js/create.js b/module/testtask/js/create.js
index f3b17a474d..ac64d00a46 100755
--- a/module/testtask/js/create.js
+++ b/module/testtask/js/create.js
@@ -6,7 +6,31 @@
*/
function loadProductRelated()
{
- loadExecutionBuilds(parseInt($('#execution').val()));
+ loadExecutions($('#product').val());
+ data = '
diff --git a/module/upgrade/control.php b/module/upgrade/control.php
index b2fa00c40f..039ef202cd 100644
--- a/module/upgrade/control.php
+++ b/module/upgrade/control.php
@@ -164,8 +164,8 @@ class upgrade extends control
$mode = fixer::input('post')->get('mode');
$this->loadModel('setting')->setItem('system.common.global.mode', $mode);
- if($mode == 'old') $this->locate(inlink('afterExec', "fromVersion=$fromVersion"));
- if($mode == 'new') $this->locate(inlink('mergeTips'));
+ if($mode == 'classic') $this->locate(inlink('afterExec', "fromVersion=$fromVersion"));
+ if($mode == 'new') $this->locate(inlink('mergeTips'));
}
$this->view->title = $this->lang->upgrade->to15Guide;
diff --git a/module/user/model.php b/module/user/model.php
index f815e0033e..66cbdd59fe 100644
--- a/module/user/model.php
+++ b/module/user/model.php
@@ -1025,10 +1025,11 @@ class userModel extends model
*/
public function getExecutions($account, $type = 'execution', $status = 'all', $orderBy = 'id_desc', $pager = null)
{
- if($type == 'execution') $type = 'sprint,stage';
+ $projectType = $type == 'execution' ? 'sprint,stage' : $type;
$myProjectsList = $this->dao->select('t1. *,t2. *')->from(TABLE_TEAM)->alias('t1')
->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.root = t2.id')
->where('t1.type')->in($type)
+ ->andWhere('t2.type')->in($projectType)
->beginIF(strpos('doing|wait|suspended|closed', $status) !== false)->andWhere('status')->eq($status)->fi()
->beginIF($status == 'done')->andWhere('status')->in('done,closed')->fi()
->beginIF($status == 'undone')->andWhere('status')->notin('done,closed')->fi()
diff --git a/module/user/view/featurebar.html.php b/module/user/view/featurebar.html.php
index 96011fa96a..8a22b15661 100755
--- a/module/user/view/featurebar.html.php
+++ b/module/user/view/featurebar.html.php
@@ -39,9 +39,12 @@
$active = $methodName == 'testcase' ? ' btn-active-text' : '';
common::printLink('user', 'testcase', "userID={$user->id}", $label, '', "class='btn btn-link $active'");
- $label = "{$lang->user->execution}";
- $active = $methodName == 'execution' ? ' btn-active-text' : '';
- common::printLink('user', 'execution', "userID={$user->id}", $label, '', "class='btn btn-link $active'");
+ if($this->config->systemMode == 'new')
+ {
+ $label = "{$lang->user->execution}";
+ $active = $methodName == 'execution' ? ' btn-active-text' : '';
+ common::printLink('user', 'execution', "userID={$user->id}", $label, '', "class='btn btn-link $active'");
+ }
if(isset($this->config->maxVersion))
{