Merge branch 'master_xieqiyu_76492' into 'master'
* Fix bug#29461. See merge request easycorp/zentaopms!6263
This commit is contained in:
@@ -106,6 +106,7 @@ class datatable extends control
|
||||
|
||||
if(!$project->multiple) unset($cols['execution']);
|
||||
if(!$project->hasProduct and $project->model != 'scrum') unset($cols['plan']);
|
||||
if(!$project->hasProduct) unset($cols['branch']);
|
||||
}
|
||||
|
||||
if($moduleName == 'execution' and $method == 'bug')
|
||||
@@ -113,12 +114,14 @@ class datatable extends control
|
||||
$execution = $this->loadModel('execution')->getByID($this->session->execution);
|
||||
$project = $this->loadModel('project')->getByID($execution->project);
|
||||
if(!$project->hasProduct and $project->model != 'scrum') unset($cols['plan']);
|
||||
if(!$project->hasProduct) unset($cols['branch']);
|
||||
}
|
||||
|
||||
if($moduleName == 'execution' and $method == 'story')
|
||||
{
|
||||
$execution = $this->loadModel('execution')->getByID($this->session->execution);
|
||||
if(!$execution->hasProduct and !$execution->multiple) unset($cols['plan']);
|
||||
if(!$execution->hasProduct) unset($cols['branch']);
|
||||
}
|
||||
|
||||
$this->view->cols = $cols;
|
||||
|
||||
@@ -125,6 +125,7 @@
|
||||
foreach($setting as $value)
|
||||
{
|
||||
if(!$project->hasProduct and $project->model != 'scrum' and $value->id == 'plan') continue;
|
||||
if(!$project->hasProduct and $value->id == 'branch') continue;
|
||||
if($value->show)
|
||||
{
|
||||
if(common::checkNotCN() and $value->id == 'severity') $value->name = $lang->bug->severity;
|
||||
@@ -154,6 +155,7 @@
|
||||
<?php foreach($setting as $value)
|
||||
{
|
||||
if(!$project->hasProduct and $project->model != 'scrum' and $value->id == 'plan') continue;
|
||||
if(!$project->hasProduct and $value->id == 'branch') continue;
|
||||
$this->bug->printCell($value, $bug, $users, $builds, $branchOption, $modulePairs, $executions, $plans, $stories, $tasks, $useDatatable ? 'datatable' : 'table', $projectPairs);
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -254,6 +254,7 @@
|
||||
<?php
|
||||
foreach($setting as $key => $value)
|
||||
{
|
||||
if(!$execution->hasProduct and $value->id == 'branch') continue;
|
||||
if(!$execution->hasProduct and !$execution->multiple and $value->id == 'plan') continue;
|
||||
if(!$execution->hasProduct and !$execution->multiple and $value->id == 'stage') continue;
|
||||
if(!$execution->hasProduct and !$execution->multiple and $storyType == 'requirement' and $value->id == 'taskCount') continue;
|
||||
@@ -274,6 +275,7 @@
|
||||
<tr id="story<?php echo $story->id;?>" data-id='<?php echo $story->id;?>' data-order='<?php echo $story->order ?>' data-estimate='<?php echo $story->estimate?>' data-cases='<?php echo zget($storyCases, $story->id, 0)?>'>
|
||||
<?php foreach($setting as $key => $value)
|
||||
{
|
||||
if(!$execution->hasProduct and $value->id == 'branch') continue;
|
||||
if(!$execution->hasProduct and !$execution->multiple and $value->id == 'plan') continue;
|
||||
if(!$execution->hasProduct and !$execution->multiple and $value->id == 'stage') continue;
|
||||
if(!$execution->hasProduct and !$execution->multiple and $storyType == 'requirement' and $value->id == 'taskCount') continue;
|
||||
@@ -290,6 +292,7 @@
|
||||
<tr class='table-children<?php echo $class;?> parent-<?php echo $story->id;?>' data-id='<?php echo $child->id?>' data-status='<?php echo $child->status?>' data-estimate='<?php echo $child->estimate?>' data-cases='<?php echo zget($storyCases, $story->id, 0);?>'>
|
||||
<?php foreach($setting as $key => $value)
|
||||
{
|
||||
if(!$execution->hasProduct and $value->id == 'branch') continue;
|
||||
if(!$execution->hasProduct and !$execution->multiple and $value->id == 'plan') continue;
|
||||
if(!$execution->hasProduct and !$execution->multiple and $value->id == 'stage') continue;
|
||||
if(!$execution->hasProduct and !$execution->multiple and $storyType == 'requirement' and $value->id == 'taskCount') continue;
|
||||
|
||||
@@ -99,6 +99,7 @@
|
||||
foreach($setting as $key => $value)
|
||||
{
|
||||
if(!$project->hasProduct and $project->model != 'scrum' and $value->id == 'plan') continue;
|
||||
if(!$project->hasProduct and $value->id == 'branch') continue;
|
||||
|
||||
if($value->show)
|
||||
{
|
||||
@@ -119,6 +120,7 @@
|
||||
<?php foreach($setting as $value)
|
||||
{
|
||||
if(!$project->hasProduct and $project->model != 'scrum' and $value->id == 'plan') continue;
|
||||
if(!$project->hasProduct and $value->id == 'branch') continue;
|
||||
$this->bug->printCell($value, $bug, $users, $builds, $branchOption, $modulePairs, $executions, $plans, $stories, $tasks, $useDatatable ? 'datatable' : 'table', $projectPairs);
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user