* Fix bug #32711.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user