* Code for fix bug #32506.

This commit is contained in:
tianshujie
2023-02-28 16:53:39 +08:00
parent 7ca8fbffb4
commit 87b8f8f9b7
2 changed files with 37 additions and 2 deletions
+2 -2
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') ? '' : 'hidden'?>
<?php $hiddenStory = (strpos(",$showFields,", ',story,') !== false and $execution->lifetime != 'ops' and !in_array($execution->attribute, array('request', 'review'))) ? '' : 'hidden'?>
<tr class="<?php echo $hiddenStory?> storyBox">
<th><?php echo $lang->task->story;?></th>
<td colspan='3'>
@@ -129,7 +129,7 @@ foreach(explode(',', $config->task->create->requiredFields) as $field)
</div>
</td>
</tr>
<?php if($execution->lifetime != 'ops'):?>
<?php if($execution->lifetime != 'ops' and !in_array($execution->attribute, array('request', 'review'))):?>
<tr id='testStoryBox' class='hidden'>
<th><?php echo $lang->task->selectTestStory;?></th>
<td colspan='3'>