Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms
This commit is contained in:
@@ -325,8 +325,9 @@ js::set('moduleID', $moduleID);
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3" class="text-center form-actions">
|
||||
<?php $browseLink = $this->session->bugList ? $this->session->bugList : $this->inlink('browse', "productID=$productID");?>
|
||||
<?php echo html::submitButton();?>
|
||||
<?php echo html::backButton();?>
|
||||
<?php echo html::linkButton($lang->goback, $browseLink, 'self', '', 'btn btn-wide');?>
|
||||
<?php echo html::hidden('case', (int)$caseID) . html::hidden('caseVersion', (int)$version);?>
|
||||
<?php echo html::hidden('result', (int)$runID) . html::hidden('testtask', empty($testtask) ? 0 : $testtask->id);?>
|
||||
</td>
|
||||
|
||||
@@ -38,7 +38,7 @@ class build extends control
|
||||
$this->executeHooks($buildID);
|
||||
|
||||
if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'id' => $buildID));
|
||||
if(isonlybody()) return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'callback' => "parent.loadExecutionBuilds($executionID)")); // Code for task #5126.
|
||||
if(isonlybody()) return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'callback' => "parent.loadExecutionBuilds($executionID, $buildID)")); // Code for task #5126.
|
||||
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('build', 'view', "buildID=$buildID")));
|
||||
}
|
||||
|
||||
|
||||
@@ -926,7 +926,9 @@ class execution extends control
|
||||
$this->loadModel('testcase');
|
||||
$this->loadModel('testtask');
|
||||
$this->commonAction($executionID);
|
||||
$this->session->set('caseList', $this->app->getURI(true), 'execution');
|
||||
$uri = $this->app->getURI(true);
|
||||
$this->session->set('caseList', $uri, 'execution');
|
||||
$this->session->set('bugList', $uri, 'execution');
|
||||
|
||||
$products = $this->execution->getProducts($executionID);
|
||||
$productID = key($products); // Get the first product for creating testcase.
|
||||
|
||||
@@ -921,6 +921,7 @@ class project extends control
|
||||
public function testcase($projectID = 0, $productID = 0, $branch = 0, $browseType = 'all', $param = 0, $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
|
||||
{
|
||||
$this->loadModel('product');
|
||||
$this->session->set('bugList', $this->app->getURI(true), 'project');
|
||||
$products = array('0' => $this->lang->product->all) + $this->project->getProducts($projectID, false);
|
||||
$this->lang->modulePageNav = $this->product->select($products, $productID, 'project', 'testcase', '', $branch, 0, '', false);
|
||||
|
||||
|
||||
@@ -1324,6 +1324,7 @@ class storyModel extends model
|
||||
{
|
||||
$oldStory = $oldStories[$storyID];
|
||||
if($oldStory->status != 'draft' and $oldStory->status != 'changed') continue;
|
||||
if(!in_array($this->app->user->account, array_keys($reviewerList[$storyID]))) continue;
|
||||
if(isset($hasResult[$storyID])) continue;
|
||||
|
||||
$story = new stdClass();
|
||||
|
||||
@@ -132,7 +132,9 @@ class testcase extends control
|
||||
$this->qa->setMenu($this->products, $productID, $branch);
|
||||
}
|
||||
|
||||
$this->session->set('caseList', $this->app->getURI(true), $this->app->openApp);
|
||||
$uri = $this->app->getURI(true);
|
||||
$this->session->set('caseList', $uri, $this->app->openApp);
|
||||
$this->session->set('bugList', $uri, $this->app->openApp);
|
||||
$this->session->set('productID', $productID);
|
||||
$this->session->set('moduleID', $moduleID);
|
||||
$this->session->set('browseType', $browseType);
|
||||
@@ -598,6 +600,8 @@ class testcase extends control
|
||||
*/
|
||||
public function view($caseID, $version = 0, $from = 'testcase', $taskID = 0)
|
||||
{
|
||||
$this->session->set('bugList', $this->app->getURI(true), $this->app->openApp);
|
||||
|
||||
$caseID = (int)$caseID;
|
||||
$case = $this->testcase->getById($caseID, $version);
|
||||
if(!$case)
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<?php $browseLink = $app->session->caseList ? $app->session->caseList : $this->createLink('testcase', 'browse', "productID=$case->product");?>
|
||||
<?php js::set('sysurl', common::getSysUrl());?>
|
||||
<?php js::set('openApp', $app->openApp);?>
|
||||
<div id='mainMenu' class='clearfix'>
|
||||
<div class='btn-toolbar pull-left'>
|
||||
<?php if(!isonlybody()):?>
|
||||
|
||||
@@ -57,7 +57,14 @@ function createBug(obj)
|
||||
|
||||
var link = createLink('bug', 'create', params + ',stepIdList=' + stepIdList);
|
||||
if(onlybody = 'yes') link += '#app=qa';
|
||||
window.parent.$.apps.open(link);
|
||||
if(openApp == 'my')
|
||||
{
|
||||
window.parent.$.apps.open(link, 'qa');
|
||||
}
|
||||
else
|
||||
{
|
||||
window.open(link, '_parent');
|
||||
}
|
||||
|
||||
config.onlybody = onlybody;
|
||||
}
|
||||
@@ -81,7 +88,7 @@ function loadExecutionRelated(executionID)
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function loadExecutionBuilds(executionID)
|
||||
function loadExecutionBuilds(executionID, selected)
|
||||
{
|
||||
selectedBuild = $('#build').val();
|
||||
if(!selectedBuild) selectedBuild = 0;
|
||||
@@ -90,6 +97,7 @@ function loadExecutionBuilds(executionID)
|
||||
$('#buildBox').load(link, function()
|
||||
{
|
||||
$('#resolvedBuild').attr('id', 'build').attr('name', 'build').find('option[value=trunk]').remove();
|
||||
if(selected) $('#build').val(selected);
|
||||
$('#build').chosen();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<?php js::set('openApp', $app->openApp);?>
|
||||
<div id='mainContent' class='main-content'>
|
||||
<div class='main-header'>
|
||||
<h2>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<?php include '../../common/view/form.html.php';?>
|
||||
<?php js::set('caseResultSave', $lang->save);?>
|
||||
<?php js::set('openApp', $app->openApp);?>
|
||||
<div id='mainContent' class='main-content'>
|
||||
<div class='main-header'>
|
||||
<h2>
|
||||
|
||||
Reference in New Issue
Block a user