This commit is contained in:
tianshujie
2023-03-09 10:20:20 +08:00
parent 7e917498bf
commit b924688fe8
3 changed files with 9 additions and 3 deletions
+7 -1
View File
@@ -59,7 +59,7 @@ class executionModel extends model
*/
public function getExecutionFeatures($execution)
{
$features = array('story' => true, 'task' => true, 'qa' => true, 'devops' => true, 'burn' => true, 'build' => true, 'other' => true);
$features = array('story' => true, 'task' => true, 'qa' => true, 'devops' => true, 'burn' => true, 'build' => true, 'other' => true, 'plan' => true);
/* Unset story, bug, build and testtask if type is ops. */
if($execution->lifetime == 'ops')
@@ -81,10 +81,16 @@ class executionModel extends model
if(in_array($execution->attribute, array('request', 'review')))
{
$features['story'] = false;
$features['plan'] = false;
}
}
}
if(isset($execution->projectInfo) and in_array($execution->projectInfo->model, array('waterfall', 'kanban', 'waterfallplus')) and empty($execution->projectInfo->hasProduct))
{
$features['plan'] = false;
}
return $features;
}
+1 -1
View File
@@ -190,7 +190,7 @@
</tr>
<?php $i ++;?>
<?php endforeach;?>
<?php elseif(!empty($project) and empty($project->hasProduct) and strpos($project->model, 'waterfall') === false):?>
<?php elseif(!empty($project) and empty($project->hasProduct) and !in_array($project->model, array('waterfall', 'kanban', 'waterfallplus'))):?>
<tr>
<th><?php echo $lang->execution->linkPlan;?></th>
<td id="plansBox">
+1 -1
View File
@@ -345,7 +345,7 @@
</div>
</div>
<?php endif;?>
<?php if(!(strpos($execution->projectInfo->model, 'waterfall') !== false and (empty($execution->projectInfo->hasProduct) or in_array($execution->attribute, array('request', 'review'))))):?>
<?php if($features['plan']):?>
<div class="detail">
<div class="detail-title"><strong><?php echo $lang->execution->linkPlan;?></strong></div>
<div class="detail-content">