Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms
This commit is contained in:
@@ -234,7 +234,7 @@ class caselibModel extends model
|
||||
$lib = fixer::input('post')
|
||||
->stripTags($this->config->caselib->editor->create['id'], $this->config->allowedTags)
|
||||
->setForce('type', 'library')
|
||||
->setIF($this->config->systemMode == 'new', 'PRJ', $this->session->PRJ)
|
||||
->setIF($this->config->systemMode == 'new' and $this->lang->navGroup->caselib != 'qa', 'PRJ', $this->session->PRJ)
|
||||
->add('addedBy', $this->app->user->account)
|
||||
->add('addedDate', helper::now())
|
||||
->remove('uid')
|
||||
@@ -278,7 +278,7 @@ class caselibModel extends model
|
||||
{
|
||||
$cases = $this->dao->select('*')->from(TABLE_CASE)
|
||||
->where('lib')->eq((int)$libID)
|
||||
->beginIF($this->lang->navGroup->caselib != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->beginIF($this->config->systemMode == 'new' and $this->lang->navGroup->caselib != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->andWhere('product')->eq(0)
|
||||
->beginIF($moduleIdList)->andWhere('module')->in($moduleIdList)->fi()
|
||||
->beginIF($browseType == 'wait')->andWhere('status')->eq($browseType)->fi()
|
||||
@@ -315,7 +315,7 @@ class caselibModel extends model
|
||||
|
||||
$cases = $this->dao->select('*')->from(TABLE_CASE)->where($caseQuery)
|
||||
->beginIF($queryLibID != 'all')->andWhere('lib')->eq((int)$libID)->fi()
|
||||
->beginIF($this->lang->navGroup->caselib != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->beginIF($this->config->systemMode == 'new' and $this->lang->navGroup->caselib != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->andWhere('product')->eq(0)
|
||||
->andWhere('deleted')->eq(0)
|
||||
->orderBy($sort)->page($pager)->fetchAll();
|
||||
|
||||
@@ -114,8 +114,6 @@ $lang->future = 'Warte';
|
||||
$lang->year = 'Jahr';
|
||||
$lang->workingHour = 'Stunde';
|
||||
|
||||
$lang->generalUR = 'UR/Epic';
|
||||
$lang->generalSR = 'SR/Story';
|
||||
$lang->sprintCommon = $lang->iterationCommon . '/Phase';
|
||||
|
||||
$lang->execution = new stdclass();
|
||||
|
||||
@@ -114,8 +114,6 @@ $lang->future = 'Waiting';
|
||||
$lang->year = 'Year';
|
||||
$lang->workingHour = 'Hours';
|
||||
|
||||
$lang->generalUR = 'UR/Epic';
|
||||
$lang->generalSR = 'SR/Story';
|
||||
$lang->sprintCommon = $lang->iterationCommon . '/Phase';
|
||||
|
||||
$lang->execution = new stdclass();
|
||||
|
||||
@@ -114,8 +114,6 @@ $lang->future = 'En Attente';
|
||||
$lang->year = 'Année';
|
||||
$lang->workingHour = 'Heures';
|
||||
|
||||
$lang->generalUR = 'UR/Epic';
|
||||
$lang->generalSR = 'SR/Story';
|
||||
$lang->sprintCommon = $lang->iterationCommon . '/Phase';
|
||||
|
||||
$lang->execution = new stdclass();
|
||||
|
||||
@@ -114,8 +114,6 @@ $lang->future = 'Đang đợi';
|
||||
$lang->year = 'Năm';
|
||||
$lang->workingHour = 'giờ';
|
||||
|
||||
$lang->generalUR = 'UR/Epic';
|
||||
$lang->generalSR = 'SR/Story';
|
||||
$lang->sprintCommon = $lang->iterationCommon . '/Phase';
|
||||
|
||||
$lang->execution = new stdclass();
|
||||
|
||||
@@ -114,8 +114,6 @@ $lang->future = '未来';
|
||||
$lang->year = '年';
|
||||
$lang->workingHour = '工时';
|
||||
|
||||
$lang->generalUR = '用需/史诗';
|
||||
$lang->generalSR = '软需/故事';
|
||||
$lang->sprintCommon = $lang->iterationCommon . '/阶段';
|
||||
|
||||
$lang->execution = new stdclass();
|
||||
|
||||
@@ -114,8 +114,6 @@ $lang->future = '未來';
|
||||
$lang->year = '年';
|
||||
$lang->workingHour = '工時';
|
||||
|
||||
$lang->generalUR = '用需/史詩';
|
||||
$lang->generalSR = '軟需/故事';
|
||||
$lang->sprintCommon = '迭代/階段';
|
||||
|
||||
$lang->execution = new stdclass();
|
||||
|
||||
@@ -763,12 +763,12 @@ class program extends control
|
||||
*/
|
||||
public function index($projectID = 0)
|
||||
{
|
||||
$project = $this->program->getPRJByID($projectID);
|
||||
if(empty($project) || $project->type != 'project') die(js::error($this->lang->notFound) . js::locate('back'));
|
||||
|
||||
$this->lang->navGroup->program = 'project';
|
||||
$projectID = $this->program->savePRJState($projectID, $this->program->getPRJPairs());
|
||||
|
||||
$project = $this->program->getPRJByID($projectID);
|
||||
if(empty($project) || $project->type != 'project') die(js::error($this->lang->notFound) . js::locate('back'));
|
||||
|
||||
if(!$projectID) $this->locate($this->createLink('program', 'PRJbrowse'));
|
||||
setCookie("lastPRJ", $projectID, $this->config->cookieLife, $this->config->webRoot, '', false, true);
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
$lang->projectstory->common = 'Anforderungen an Projekte';
|
||||
$lang->projectstory->index = 'Fordern Sie Homepage';
|
||||
$lang->projectstory->view = 'Story Detail';
|
||||
$lang->projectstory->story = $lang->generalSR;
|
||||
$lang->projectstory->track = 'Matrix der Verfolgung';
|
||||
$lang->projectstory->linkStory = 'Linked' . $lang->SRCommon;
|
||||
$lang->projectstory->unlinkStory = 'Unlinked' . $lang->SRCommon;
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
$lang->projectstory->common = 'Project Requirements';
|
||||
$lang->projectstory->index = 'Request Home';
|
||||
$lang->projectstory->view = 'Story Detail';
|
||||
$lang->projectstory->story = $lang->generalSR;
|
||||
$lang->projectstory->track = 'Tracking Matrix';
|
||||
$lang->projectstory->linkStory = 'Linked' . $lang->SRCommon;
|
||||
$lang->projectstory->unlinkStory = 'Unlinked' . $lang->SRCommon;
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
$lang->projectstory->common = 'Exigences du projet';
|
||||
$lang->projectstory->index = 'Exigences Accueil';
|
||||
$lang->projectstory->view = 'Story Detail';
|
||||
$lang->projectstory->story = $lang->generalSR;
|
||||
$lang->projectstory->track = 'Matrice de suivi';
|
||||
$lang->projectstory->linkStory = 'Linked' . $lang->SRCommon;
|
||||
$lang->projectstory->unlinkStory = 'Unlinked' . $lang->SRCommon;
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
$lang->projectstory->common = 'Yêu cầu dự án';
|
||||
$lang->projectstory->index = 'Yêu cầu trang nhà';
|
||||
$lang->projectstory->view = 'Story Detail';
|
||||
$lang->projectstory->story = $lang->generalSR;
|
||||
$lang->projectstory->track = 'Theo dõi ma trận';
|
||||
$lang->projectstory->linkStory = 'Linked' . $lang->SRCommon;
|
||||
$lang->projectstory->unlinkStory = 'Unlinked' . $lang->SRCommon;
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
$lang->projectstory->common = '项目需求';
|
||||
$lang->projectstory->index = '需求主页';
|
||||
$lang->projectstory->view = '需求详情';
|
||||
$lang->projectstory->story = $lang->generalSR;
|
||||
$lang->projectstory->track = '矩阵';
|
||||
$lang->projectstory->linkStory = '关联' . $lang->SRCommon;
|
||||
$lang->projectstory->unlinkStory = '移除' . $lang->SRCommon;
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
$lang->projectstory->common = '項目需求';
|
||||
$lang->projectstory->index = '需求主頁';
|
||||
$lang->projectstory->view = '需求詳情';
|
||||
$lang->projectstory->story = $lang->generalSR;
|
||||
$lang->projectstory->track = '矩陣';
|
||||
$lang->projectstory->linkStory = '關聯' . $lang->SRCommon;
|
||||
$lang->projectstory->unlinkStory = '移除' . $lang->SRCommon;
|
||||
|
||||
@@ -71,12 +71,16 @@ class report extends control
|
||||
/**
|
||||
* Product information report.
|
||||
*
|
||||
* @params string $conditions
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function productSummary($conditions = '')
|
||||
{
|
||||
$this->app->loadLang('story');
|
||||
$this->app->loadLang('product');
|
||||
$this->app->loadLang('productplan');
|
||||
|
||||
$this->view->title = $this->lang->report->productSummary;
|
||||
$this->view->position[] = $this->lang->report->productSummary;
|
||||
$this->view->products = $this->report->getProducts($conditions);
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
.date{width:80px;}
|
||||
ul li{list-style:none;}
|
||||
|
||||
.side-col {padding-right: 20px; width: 15%;}
|
||||
#sidebar>.cell {width: 100%;}
|
||||
#productList p{margin:2px 0;}
|
||||
.table-bordered, .outer.with-side .main, .outer.with-side > form > .table, .outer.with-side > .table{border: none}
|
||||
|
||||
|
||||
@@ -1,19 +1,29 @@
|
||||
<div class='panel'>
|
||||
<div class='panel-heading'>
|
||||
<div class='panel-title'><?php echo $lang->report->list;?></div>
|
||||
<div class="sidebar-toggle">
|
||||
<i class="icon icon-angle-left"></i>
|
||||
</div>
|
||||
<div class="cell">
|
||||
<div class='panel'>
|
||||
<div class='panel-heading'>
|
||||
<div class='panel-title'><?php echo $lang->report->list;?></div>
|
||||
</div>
|
||||
<div class='panel-body'>
|
||||
<div class='list-group'>
|
||||
<?php
|
||||
ksort($lang->reportList->$submenu->lists);
|
||||
foreach($lang->reportList->$submenu->lists as $list)
|
||||
{
|
||||
$list .= '|';
|
||||
list($label, $module, $method, $params) = explode('|', $list);
|
||||
$class = $label == $title ? 'selected' : '';
|
||||
if(common::hasPriv($module, $method)) echo html::a($this->createLink($module, $method, $params), '<i class="icon icon-file-text"></i> ' . $label, '', "class='$class' title='$label'");
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='panel-body'>
|
||||
<div class='list-group'>
|
||||
<?php
|
||||
ksort($lang->reportList->$submenu->lists);
|
||||
foreach($lang->reportList->$submenu->lists as $list)
|
||||
{
|
||||
$list .= '|';
|
||||
list($label, $module, $method, $params) = explode('|', $list);
|
||||
$class = $label == $title ? 'selected' : '';
|
||||
if(common::hasPriv($module, $method)) echo html::a($this->createLink($module, $method, $params), '<i class="icon icon-file-text"></i> ' . $label, '', "class='$class' title='$label'");
|
||||
}
|
||||
?>
|
||||
<div class='panel panel-body' style='padding: 10px 6px'>
|
||||
<div class='text proversion'>
|
||||
<strong class='text-danger small text-latin'>PRO</strong> <span class='text-important'><?php echo (!empty($config->isINT)) ? $lang->report->proVersionEn : $lang->report->proVersion;?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<div id='mainContent' class='main-row'>
|
||||
<div class='side-col col-lg'>
|
||||
<div class='side-col col-lg' id='sidebar'>
|
||||
<?php include 'blockreportlist.html.php';?>
|
||||
<div class='panel panel-body' style='padding: 10px 6px'>
|
||||
<div class='text proversion'>
|
||||
<strong class='text-danger small text-latin'>PRO</strong> <span class='text-important'><?php echo (!empty($config->isINT)) ? $lang->report->proVersionEn : $lang->report->proVersion; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main-col'>
|
||||
<?php if(empty($assigns)):?>
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<div id='mainContent' class='main-row'>
|
||||
<div class='side-col col-lg'>
|
||||
<div class='side-col col-lg' id='sidebar'>
|
||||
<?php include 'blockreportlist.html.php';?>
|
||||
<div class='panel panel-body' style='padding: 10px 6px'>
|
||||
<div class='text proversion'>
|
||||
<strong class='text-danger small text-latin'>PRO</strong> <span class='text-important'><?php echo (!empty($config->isINT)) ? $lang->report->proVersionEn : $lang->report->proVersion; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main-col'>
|
||||
<div class='cell'>
|
||||
|
||||
@@ -3,13 +3,8 @@
|
||||
<style>#conditions .col-xs { width: 126px; }</style>
|
||||
<?php endif;?>
|
||||
<div id='mainContent' class='main-row'>
|
||||
<div class='side-col col-lg'>
|
||||
<div class='side-col col-lg' id='sidebar'>
|
||||
<?php include 'blockreportlist.html.php';?>
|
||||
<div class='panel panel-body' style='padding: 10px 6px'>
|
||||
<div class='text proversion'>
|
||||
<strong class='text-danger small text-latin'>PRO</strong> <span class='text-important'><?php echo (!empty($config->isINT)) ? $lang->report->proVersionEn : $lang->report->proVersion;?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main-col'>
|
||||
<?php if(empty($products)):?>
|
||||
|
||||
@@ -3,13 +3,8 @@
|
||||
<?php include '../../common/view/chart.html.php';?>
|
||||
<?php $chartData = array('labels' => array(), 'data' => array());?>
|
||||
<div id='mainContent' class='main-row'>
|
||||
<div class='side-col col-lg'>
|
||||
<div class='side-col col-lg' id='sidebar'>
|
||||
<?php include 'blockreportlist.html.php';?>
|
||||
<div class='panel panel-body' style='padding: 10px 6px'>
|
||||
<div class='text proversion'>
|
||||
<strong class='text-danger small text-latin'>PRO</strong> <span class='text-important'><?php echo (!empty($config->isINT)) ? $lang->report->proVersionEn : $lang->report->proVersion; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main-col'>
|
||||
<div class='cell'>
|
||||
|
||||
@@ -2,13 +2,8 @@
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<?php js::set('weekend', $config->project->weekend);?>
|
||||
<div id='mainContent' class='main-row'>
|
||||
<div class='side-col col-lg'>
|
||||
<div class='side-col col-lg' id='sidebar'>
|
||||
<?php include 'blockreportlist.html.php';?>
|
||||
<div class='panel panel-body' style='padding: 10px 6px'>
|
||||
<div class='text proversion'>
|
||||
<strong class='text-danger small text-latin'>PRO</strong> <span class='text-important'><?php echo (!empty($config->isINT)) ? $lang->report->proVersionEn : $lang->report->proVersion; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main-col'>
|
||||
<div class='cell'>
|
||||
|
||||
@@ -133,7 +133,7 @@ class testsuiteModel extends model
|
||||
{
|
||||
return $this->dao->select("*")->from(TABLE_TESTSUITE)
|
||||
->where('product')->eq((int)$productID)
|
||||
->beginIF($this->lang->navGroup->testsuite != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->beginIF($this->config->systemMode == 'new' and $this->lang->navGroup->testsuite != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->andWhere('deleted')->eq(0)
|
||||
->andWhere("(`type` = 'public' OR (`type` = 'private' and addedBy = '{$this->app->user->account}'))")
|
||||
->orderBy($orderBy)
|
||||
@@ -242,7 +242,7 @@ class testsuiteModel extends model
|
||||
$cases = $this->dao->select('t1.*,t2.version as caseVersion')->from(TABLE_CASE)->alias('t1')
|
||||
->leftJoin(TABLE_SUITECASE)->alias('t2')->on('t1.id=t2.case')
|
||||
->where('t2.suite')->eq($suiteID)
|
||||
->andWhere('t1.PRJ')->eq($this->session->PRJ)
|
||||
->beginIF($this->config->systemMode == 'new' and $this->lang->navGroup->testsuite != 'qa')->andWhere('t1.PRJ')->eq($this->session->PRJ)->fi()
|
||||
->andWhere('t1.product')->eq($suite->product)
|
||||
->andWhere('t1.product')->eq($suite->product)
|
||||
->andWhere('t1.deleted')->eq(0)
|
||||
@@ -286,7 +286,7 @@ class testsuiteModel extends model
|
||||
$linkedCases = $this->getLinkedCases($suite->id, 'id_desc', null, $append = false);
|
||||
$cases = $this->dao->select('*')->from(TABLE_CASE)->where($query)
|
||||
->andWhere('id')->notIN(array_keys($linkedCases))
|
||||
->beginIF($this->lang->navGroup->testsuite != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->beginIF($this->config->systemMode == 'new' and $this->lang->navGroup->testsuite != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->andWhere('deleted')->eq(0)
|
||||
->orderBy('id desc')
|
||||
->page($pager)
|
||||
@@ -323,7 +323,7 @@ class testsuiteModel extends model
|
||||
{
|
||||
$importedCases = $this->dao->select('fromCaseID')->from(TABLE_CASE)
|
||||
->where('product')->eq($productID)
|
||||
->andWhere('PRJ')->eq($this->session->PRJ)
|
||||
->beginIF($this->config->systemMode == 'new' and $this->lang->navGroup->testsuite != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->andWhere('lib')->eq($libID)
|
||||
->andWhere('fromCaseID')->ne('')
|
||||
->andWhere('deleted')->eq(0)
|
||||
@@ -357,7 +357,7 @@ class testsuiteModel extends model
|
||||
return $this->dao->select('*')->from(TABLE_CASE)->where('deleted')->eq(0)
|
||||
->beginIF($browseType != 'bysearch')->andWhere('lib')->eq($libID)->fi()
|
||||
->beginIF($browseType == 'bysearch')->andWhere($query)->fi()
|
||||
->andWhere('PRJ')->eq($this->session->PRJ)
|
||||
->begin($this->config->systemMode == 'new' and $this->lang->navGroup->testsuite != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->andWhere('product')->eq(0)
|
||||
->andWhere('id')->notIN($importedCases)
|
||||
->orderBy($orderBy)
|
||||
|
||||
@@ -203,7 +203,7 @@ class testtaskModel extends model
|
||||
->leftJoin(TABLE_PROJECTPRODUCT)->alias('t5')->on('t1.project = t5.project and t1.product = t5.product')
|
||||
|
||||
->where('t1.deleted')->eq(0)
|
||||
->beginIF($this->lang->navGroup->testtask != 'qa')->andWhere('t1.PRJ')->eq($this->session->PRJ)->fi()
|
||||
->beginIF($this->config->systemMode == 'new' and $this->lang->navGroup->testtask != 'qa')->andWhere('t1.PRJ')->eq($this->session->PRJ)->fi()
|
||||
->andWhere('t1.auto')->ne('unit')
|
||||
->beginIF(!$this->app->user->admin)->andWhere('t3.id')->in("0,{$this->app->user->view->sprints}")->fi()
|
||||
->beginIF($scopeAndStatus[0] == 'local')->andWhere('t1.product')->eq((int)$productID)->fi()
|
||||
@@ -239,7 +239,7 @@ class testtaskModel extends model
|
||||
->leftJoin(TABLE_BUILD)->alias('t4')->on('t1.build = t4.id')
|
||||
->where('t1.deleted')->eq(0)
|
||||
->andWhere('t1.product')->eq($productID)
|
||||
->andWhere('t1.PRJ')->eq($this->session->PRJ)
|
||||
->beginIF($this->config->systemMode == 'new' and $this->lang->navGroup->testtask != 'qa')->andWhere('t1.PRJ')->eq($this->session->PRJ)->fi()
|
||||
->andWhere('t1.auto')->eq('unit')
|
||||
->beginIF($browseType != 'all' and $browseType != 'newest' and $beginAndEnd)
|
||||
->andWhere('t1.end')->ge($beginAndEnd['begin'])
|
||||
@@ -455,7 +455,7 @@ class testtaskModel extends model
|
||||
{
|
||||
return $this->dao->select('*')->from(TABLE_CASE)->where($query)
|
||||
->andWhere('id')->notIN($linkedCases)
|
||||
->beginIF($this->lang->navGroup->testtask != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->beginIF($this->config->systemMode == 'new' and $this->lang->navGroup->testtask != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->andWhere('status')->ne('wait')
|
||||
->andWhere('type')->ne('unit')
|
||||
->beginIF($task->branch)->andWhere('branch')->in("0,$task->branch")->fi()
|
||||
@@ -484,7 +484,7 @@ class testtaskModel extends model
|
||||
{
|
||||
$cases = $this->dao->select('*')->from(TABLE_CASE)
|
||||
->where($query)
|
||||
->beginIF($this->lang->navGroup->testtask != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->beginIF($this->config->systemMode == 'new' and $this->lang->navGroup->testtask != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->andWhere('product')->eq($productID)
|
||||
->andWhere('status')->ne('wait')
|
||||
->beginIF($linkedCases)->andWhere('id')->notIN($linkedCases)->fi()
|
||||
@@ -517,7 +517,7 @@ class testtaskModel extends model
|
||||
if($bugs)
|
||||
{
|
||||
$cases = $this->dao->select('*')->from(TABLE_CASE)->where($query)
|
||||
->beginIF($this->lang->navGroup->testtask != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->beginIF($this->config->systemMode == 'new' and $this->lang->navGroup->testtask != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi()
|
||||
->andWhere('product')->eq($productID)
|
||||
->andWhere('status')->ne('wait')
|
||||
->beginIF($linkedCases)->andWhere('id')->notIN($linkedCases)->fi()
|
||||
@@ -550,7 +550,7 @@ class testtaskModel extends model
|
||||
return $this->dao->select('t1.*,t2.version as version')->from(TABLE_CASE)->alias('t1')
|
||||
->leftJoin(TABLE_SUITECASE)->alias('t2')->on('t1.id=t2.case')
|
||||
->where($query)
|
||||
->beginIF($this->lang->navGroup->testtask != 'qa')->andWhere('t1.PRJ')->eq($this->session->PRJ)->fi()
|
||||
->beginIF($this->config->systemMode == 'new' and $this->lang->navGroup->testtask != 'qa')->andWhere('t1.PRJ')->eq($this->session->PRJ)->fi()
|
||||
->andWhere('t2.suite')->eq((int)$suite)
|
||||
->andWhere('t1.product')->eq($productID)
|
||||
->andWhere('status')->ne('wait')
|
||||
@@ -585,7 +585,7 @@ class testtaskModel extends model
|
||||
->where($query)
|
||||
->andWhere('t1.id')->notin($linkedCases)
|
||||
->andWhere('t2.task')->eq($testTask)
|
||||
->beginIF($this->lang->navGroup->testtask != 'qa')->andWhere('t1.PRJ')->eq($this->session->PRJ)->fi()
|
||||
->beginIF($this->config->systemMode == 'new' and $this->lang->navGroup->testtask != 'qa')->andWhere('t1.PRJ')->eq($this->session->PRJ)->fi()
|
||||
->andWhere('t1.status')->ne('wait')
|
||||
->page($pager)
|
||||
->fetchAll();
|
||||
|
||||
Reference in New Issue
Block a user