Merge branch 'master_xieqiyu_75905' into 'master'

* Fix bug#29449.

See merge request easycorp/zentaopms!6145
This commit is contained in:
王怡栋
2022-11-15 07:38:34 +00:00
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -396,6 +396,7 @@ class story extends control
/* Hidden some fields of projects without products. */
$this->view->hiddenProduct = false;
$this->view->hiddenParent = false;
$this->view->hiddenPlan = false;
$this->view->hiddenURS = false;
$this->view->teamUsers = array();
@@ -409,6 +410,7 @@ class story extends control
{
$this->view->teamUsers = $this->project->getTeamMemberPairs($project->id);
$this->view->hiddenProduct = true;
$this->view->hiddenParent = true;
if($project->model !== 'scrum') $this->view->hiddenPlan = true;
if(!$project->multiple) $this->view->hiddenPlan = true;
@@ -883,6 +885,7 @@ class story extends control
/* Hidden some fields of projects without products. */
$this->view->hiddenProduct = false;
$this->view->hiddenParent = false;
$this->view->hiddenPlan = false;
$this->view->hiddenURS = false;
$this->view->teamUsers = array();
@@ -892,6 +895,7 @@ class story extends control
$project = $this->project->getByShadowProduct($product->id);
$this->view->teamUsers = $this->project->getTeamMemberPairs($project->id);
$this->view->hiddenProduct = true;
$this->view->hiddenParent = true;
if($project->model !== 'scrum') $this->view->hiddenPlan = true;
if(!$project->multiple) $this->view->hiddenPlan = true;
+2 -2
View File
@@ -161,7 +161,7 @@ foreach(explode(',', $config->story->create->requiredFields) as $field)
<tr>
<th><?php echo $hiddenURS ? $lang->story->parent : $lang->story->requirement;?></th>
<td colspan="2" class="<?php if($hiddenURS) echo 'hidden';?>"><?php echo html::select('URS[]', $URS, '', "class='form-control chosen' multiple");?></td>
<td colspan="2">
<td colspan="2" <?php if($hiddenParent) echo 'hidden';?>>
<div class='input-group' id='moduleIdBox'>
<?php if(!$hiddenURS):?>
<div class="input-group-addon"><?php echo $lang->story->parent;?></div>
@@ -171,7 +171,7 @@ foreach(explode(',', $config->story->create->requiredFields) as $field)
</td>
</tr>
<?php else:?>
<tr>
<tr <?php if($hiddenParent) echo 'hidden';?>>
<th><?php echo $lang->story->parent;?></th>
<td colspan="4"><?php echo html::select('parent', $stories, '', "class='form-control chosen'");?></td>
</tr>
+1 -1
View File
@@ -166,7 +166,7 @@
</td>
</tr>
<?php if($story->parent >= 0 and $story->type == 'story'):?>
<tr>
<tr class="<?php if($hiddenParent) echo 'hidden';?>">
<th><?php echo $lang->story->parent;?></th>
<td><?php echo html::select('parent', $stories, $story->parent, "class='form-control chosen'");?></td>
</tr>