* Fix the bug of has product waterfall project.

This commit is contained in:
hufangzhou
2023-02-23 01:55:24 +00:00
parent 0d0d6c15c1
commit 42ffe61dc4
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ $(function()
hidePlanBox(attribute);
})
$('#attribute').change();
hidePlanBox(executionAttr);
}
})
var lastProjectID = $("#project").val();
+3 -2
View File
@@ -15,6 +15,7 @@
<?php include '../../common/view/kindeditor.html.php';?>
<?php js::import($jsRoot . 'misc/date.js');?>
<?php js::set('isStage', $execution->type == 'stage');?>
<?php js::set('executionAttr', $execution->attribute);?>
<?php js::set('manageProductsLang', $lang->project->manageProducts);?>
<?php js::set('manageProductPlanLang', $lang->project->manageProductPlan);?>
<div id='mainContent' class='main-content'>
@@ -161,7 +162,7 @@
<?php $i = 0;?>
<?php foreach($linkedProducts as $product):?>
<tr class="<?php echo $hidden;?>">
<th><?php if($i == 0) echo $lang->project->manageProductPlan;?></th>
<th id='productTitle'><?php if($i == 0) echo $lang->project->manageProductPlan;?></th>
<td class='text-left productsBox' colspan="3">
<div class='row'>
<div class="col-sm-6 productBox">
@@ -252,7 +253,7 @@
<?php $i = 0;?>
<?php foreach($linkedProducts as $product):?>
<tr>
<th><?php if($i == 0) echo $lang->project->manageProductPlan;?></th>
<th id="productTitle"><?php if($i == 0) echo $lang->project->manageProductPlan;?></th>
<td class='text-left productsBox' colspan="3">
<div class='row'>
<div class="col-sm-6 productBox">
+1 -1
View File
@@ -345,7 +345,7 @@
</div>
</div>
<?php endif;?>
<?php if($execution->projectInfo->hasProduct or $execution->projectInfo->model == 'scrum'):?>
<?php if(!(strpos($execution->projectInfo->model, 'waterfall') !== false and (empty($execution->projectInfo->hasProduct) or in_array($execution->attribute, array('request', 'review'))))):?>
<div class="detail">
<div class="detail-title"><strong><?php echo $lang->execution->linkPlan;?></strong></div>
<div class="detail-content">