* Finish task #92304.

This commit is contained in:
Yagami
2023-05-06 16:21:28 +08:00
parent aaef26d757
commit b94a69a0b8
7 changed files with 10 additions and 10 deletions

View File

@@ -2099,7 +2099,7 @@ class execution extends control
$project = $this->project->getById($execution->project);
if(!$project->hasProduct) $this->lang->execution->PO = $this->lang->common->story . $this->lang->execution->owner;
if($project->model == 'waterfall' or $project->model == 'waterfallplus')
if(in_array($project->model, array('waterfall', 'waterfallplus', 'ipd')))
{
$parentStage = $this->project->getByID($execution->parent, 'stage');

View File

@@ -87,11 +87,11 @@
</div>
</td>
</tr>
<?php if($project->model == 'waterfall' or $project->model == 'waterfallplus'):?>
<?php if(in_array($project->model, array('waterfall', 'waterfallplus', 'ipd'))):?>
<tr>
<th><?php echo $lang->stage->type;?></th>
<td>
<?php echo $enableOptionalAttr ? html::select('attribute', $lang->stage->typeList, $execution->attribute, "class='form-control chosen'") : zget($lang->stage->typeList, $execution->attribute); ?>
<?php echo $enableOptionalAttr ? html::select('attribute', $project->model == 'ipd' ? $lang->stage->ipdTypeList : $lang->stage->typeList, $execution->attribute, "class='form-control chosen'") : zget($lang->stage->typeList, $execution->attribute); ?>
</td>
<td>
<icon class='icon icon-help' data-toggle='popover' data-trigger='focus hover' data-placement='right' data-tip-class='text-muted popover-sm' data-content="<?php echo $lang->execution->typeTip;?>"></icon>