diff --git a/module/execution/control.php b/module/execution/control.php index d4ef2cbb54..1e9f4bb4db 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1230,6 +1230,8 @@ class execution extends control */ public function team($executionID = 0) { + $this->app->session->set('teamList', $this->app->getURI(true), 'execution'); + $execution = $this->commonAction($executionID); $executionID = $execution->id; @@ -1976,6 +1978,8 @@ class execution extends control */ public function view($executionID) { + $this->app->session->set('teamList', $this->app->getURI(true), 'execution'); + $executionID = $this->execution->saveState((int)$executionID, $this->executions); $execution = $this->execution->getById($executionID, true); $type = $this->config->vision == 'lite' ? 'kanban' : 'stage,sprint,kanban'; @@ -2639,7 +2643,8 @@ class execution extends control { $this->execution->manageMembers($executionID); $this->loadModel('action')->create('team', $executionID, 'managedTeam'); - return print(js::locate($this->createLink('execution', 'team', "executionID=$executionID"), 'parent')); + $link = $this->session->teamList ? $this->session->teamList : $this->createLink('execution', 'team', "executionID=$executionID"); + return print(js::locate($link, 'parent')); } /* Load model. */ diff --git a/module/execution/view/view.html.php b/module/execution/view/view.html.php index cfda5512d6..a2de707acb 100644 --- a/module/execution/view/view.html.php +++ b/module/execution/view/view.html.php @@ -94,7 +94,6 @@
RD);?> (execution->RD;?>)
- $i) break;?>
account);?>
@@ -103,7 +102,6 @@
id", "  " . $lang->execution->manageMembers, '', "class='text-muted'");?>
- diff --git a/module/program/view/browsebylist.html.php b/module/program/view/browsebylist.html.php index efc038415a..2a3bc146d6 100644 --- a/module/program/view/browsebylist.html.php +++ b/module/program/view/browsebylist.html.php @@ -119,15 +119,15 @@ model == 'kanban' ? 'disabled' : '';?> - id", $program, 'list', 'edit', '', 'iframe', true, '', '', $program->id);?> - id", $program, 'list', 'group', '', "$class", '', 'data-app="project"', '', $program->id);?> - id", $program, 'list', 'lock', '', "$class", '', 'data-app="project"', '', $program->id);?> + id", $program, 'list', 'edit', '', 'iframe', true);?> + id", $program, 'list', 'group', '', "$class", '', 'data-app="project"');?> + id", $program, 'list', 'lock', '', "$class", '', 'data-app="project"');?>
diff --git a/module/project/control.php b/module/project/control.php index 36c8407ed7..f8df0dda9a 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -718,6 +718,8 @@ class project extends control { if(!defined('RUN_MODE') || RUN_MODE != 'api') $projectID = $this->project->saveState((int)$projectID, $this->project->getPairsByProgram()); + $this->session->set('teamList', $this->app->getURI(true), 'project'); + $project = $this->project->getById($projectID); if(empty($project) || strpos('scrum,waterfall,kanban', $project->model) === false) { @@ -1282,6 +1284,8 @@ class project extends control */ public function team($projectID = 0) { + $this->session->set('teamList', $this->app->getURI(true), 'project'); + $this->app->loadLang('execution'); $this->project->setMenu($projectID); @@ -1358,7 +1362,7 @@ class project extends control $this->loadModel('action')->create('team', $projectID, 'ManagedTeam'); - $link = $this->createLink('project', 'team', "projectID=$projectID"); + $link = $this->session->teamList ? $this->session->teamList : $this->createLink('project', 'team', "projectID=$projectID"); return $this->send(array('message' => $this->lang->saveSuccess, 'result' => 'success', 'locate' => $link)); } diff --git a/module/project/model.php b/module/project/model.php index eecff42064..4deab964d9 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -1761,7 +1761,7 @@ class projectModel extends model if($this->config->vision != 'lite') { - common::printIcon($moduleName, 'manageMembers', "projectID=$project->id", $project, 'list', 'group', '', '', '', $dataApp . $attr, $this->lang->execution->team); + common::printIcon($moduleName, 'team', "projectID=$project->id", $project, 'list', 'group', '', '', '', $dataApp . $attr, $this->lang->execution->team); if($this->config->systemMode == 'new') common::printIcon('project', 'group', "projectID=$project->id&programID=$programID", $project, 'list', 'lock', '', '', '', $dataApp . $attr); if(common::hasPriv($moduleName, 'manageProducts') || common::hasPriv($moduleName, 'whitelist') || common::hasPriv($moduleName, 'delete')) @@ -1778,7 +1778,7 @@ class projectModel extends model } else { - common::printIcon($moduleName, 'manageMembers', "projectID=$project->id", $project, 'list', 'group', '', '', '', $dataApp, $this->lang->execution->team); + common::printIcon($moduleName, 'team', "projectID=$project->id", $project, 'list', 'group', '', '', '', $dataApp, $this->lang->execution->team); if($this->config->systemMode == 'new') common::printIcon('project', 'whitelist', "projectID=$project->id&module=project&from=$from", $project, 'list', 'shield-check', '', 'btn-action', '', $dataApp); if(common::hasPriv($moduleName, 'delete')) echo html::a(helper::createLink($moduleName, "delete", "projectID=$project->id"), "", 'hiddenwin', "class='btn btn-action' title='{$this->lang->project->delete}'"); } diff --git a/module/testtask/control.php b/module/testtask/control.php index 03c4bfbff9..bb6e608e1c 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -1406,8 +1406,8 @@ class testtask extends control $this->app->rawModule = 'testcase'; $projectID = $this->app->tab == 'qa' ? 0 : $this->session->project; - $executions = empty($productID) ? array() : $this->loadModel('product')->getExecutionPairsByProduct($productID, 0, 'id_desc', $projectID); - $builds = empty($productID) ? array() : $this->loadModel('build')->getBuildPairs($productID, 0, 'notrunk'); + $executions = empty($productID) ? array() : $this->loadModel('product')->getExecutionPairsByProduct($productID, '', 'id_desc', $projectID); + $builds = empty($productID) ? array() : $this->loadModel('build')->getBuildPairs($productID, 'all', 'notrunk'); $this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testtask->importUnitResult; $this->view->position[] = html::a($this->createLink('testtask', 'browse', "productID=$productID"), $this->products[$productID]); diff --git a/module/testtask/js/common.js b/module/testtask/js/common.js index 7a2db64b9d..18dffc8e02 100644 --- a/module/testtask/js/common.js +++ b/module/testtask/js/common.js @@ -95,9 +95,10 @@ function loadExecutionRelated(executionID) */ function loadExecutionBuilds(executionID, selected) { - selectedBuild = $('#build').val(); + var selectedBuild = $('#build').val(); + if(!selectedBuild) selectedBuild = 0; - link = createLink('build', 'ajaxGetExecutionBuilds', 'executionID=' + executionID + '&productID=' + $('#product').val() + '&varName=testTaskBuild&build=' + selectedBuild, '', '', executionID); + var link = createLink('build', 'ajaxGetExecutionBuilds', 'executionID=' + executionID + '&productID=' + $('#product').val() + '&varName=testTaskBuild&build=' + selectedBuild); if(executionID == 0) link = createLink('build', 'ajaxGetProductBuilds', 'productID=' + $('#product').val() + '&varName=resolvedBuild&build=' + selectedBuild); $('#buildBox').load(link, function() {