* Finish task#75379,#75324.

This commit is contained in:
xieqiyu
2022-11-09 02:03:57 +00:00
parent b90a9f1742
commit f67c4801cb
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -329,7 +329,7 @@ class product extends control
$this->view->productName = $productName;
$this->view->moduleID = $moduleID;
$this->view->stories = $stories;
$this->view->plans = $this->loadModel('productplan')->getPairs($productID, $branch === 'all' ? '' : $branch, '', true);
$this->view->plans = $this->loadModel('productplan')->getPairs($productID, ($branch === 'all' or empty($branch)) ? '' : $branch, '', true);
$this->view->productPlans = isset($productPlans) ? array(0 => '') + $productPlans : array();
$this->view->summary = $this->product->summary($stories, $storyType);
$this->view->moduleTree = $moduleTree;
+2 -1
View File
@@ -494,9 +494,9 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';
</ul>
</div>
<?php if(($product->type != 'normal' and $branchID != 'all') or $product->type == 'normal'):?>
<?php $isShowModuleBTN = ($this->app->tab == 'project' and $browseType != 'bybranch') ? false : true;?>
<?php if($canBatchChangeModule and $productID and $isShowModuleBTN):?>
<?php if(($product->type != 'normal' and $branchID != 'all') or $product->type == 'normal')?>
<div class="btn-group dropup">
<button data-toggle="dropdown" type="button" class="btn"><?php echo $lang->story->moduleAB;?> <span class="caret"></span></button>
<?php $withSearch = count($modules) > 8;?>
@@ -554,6 +554,7 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';
</div>
</div>
<?php endif;?>
<?php endif;?>
<?php if($canBatchAssignTo):?>
<div class="btn-group dropup">