This commit is contained in:
zhujinyong
2023-03-01 12:00:44 +08:00
parent 504455b53c
commit b2b07abd7e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -351,6 +351,7 @@ class task extends control
$this->view->moduleOptionMenu = $moduleOptionMenu;
$this->view->projectID = $projectID;
$this->view->productID = $this->loadModel('product')->getProductIDByProject($projectID);;
$this->view->features = $this->execution->getExecutionFeatures($execution);
$this->display();
}
+1 -1
View File
@@ -110,7 +110,7 @@ foreach(explode(',', $config->task->create->requiredFields) as $field)
<td><?php echo html::hidden('status', 'wait');?></td>
</tr>
<?php $this->printExtendFields('', 'table', 'columns=3');?>
<?php $hiddenStory = (strpos(",$showFields,", ',story,') !== false and $execution->lifetime != 'ops' and !in_array($execution->attribute, array('request', 'review'))) ? '' : 'hidden'?>
<?php $hiddenStory = (strpos(",$showFields,", ',story,') !== false and $features['story']) ? '' : 'hidden'?>
<tr class="<?php echo $hiddenStory?> storyBox">
<th><?php echo $lang->task->story;?></th>
<td colspan='3'>