Merge branch 'sprint/master_lanzongjun_fixbug'

This commit is contained in:
Yagami
2022-11-16 16:29:16 +08:00
7 changed files with 32 additions and 17 deletions
+8 -8
View File
@@ -1686,12 +1686,12 @@ class execution extends control
$branchGroups = $this->execution->getBranchByProduct(array_keys($products), $projectID);
$linkedBranches = array();
foreach($products as $productID => $product)
foreach($products as $productIndex => $product)
{
foreach($branches[$productID] as $branchID => $branch)
foreach($branches[$productIndex] as $branchID => $branch)
{
$linkedBranches[$productID][$branchID] = $branchID;
$productPlans[$productID][$branchID] = isset($plans[$productID][$branchID]) ? $plans[$productID][$branchID] : array();
$linkedBranches[$productIndex][$branchID] = $branchID;
$productPlans[$productIndex][$branchID] = isset($plans[$productIndex][$branchID]) ? $plans[$productIndex][$branchID] : array();
}
}
@@ -1721,12 +1721,12 @@ class execution extends control
$plans = $this->loadModel('productplan')->getGroupByProduct(array_keys($products), 'skipParent|unexpired');
$linkedBranches = array();
foreach($products as $productID => $product)
foreach($products as $productIndex => $product)
{
foreach($branches[$productID] as $branchID => $branch)
foreach($branches[$productIndex] as $branchID => $branch)
{
$linkedBranches[$productID][$branchID] = $branchID;
$productPlans[$productID][$branchID] = isset($plans[$productID][$branchID]) ? $plans[$productID][$branchID] : array();
$linkedBranches[$productIndex][$branchID] = $branchID;
$productPlans[$productIndex][$branchID] = isset($plans[$productIndex][$branchID]) ? $plans[$productIndex][$branchID] : array();
}
}
+5 -2
View File
@@ -37,8 +37,11 @@ $(function()
/* Assign value to the manage products by the different request type.*/
var $product = $('#products0');
if(copyExecutionID) productID = $product.val();
$product.val(productID);
$product.trigger("chosen:updated");
if(productID)
{
$product.val(productID);
$product.trigger("chosen:updated");
}
var adjustMainCol = function()
{
+4 -1
View File
@@ -193,6 +193,9 @@ $lang->project->typeList['other'] = 'Other Projects';
$lang->project->divisionList['0'] = 'Create by project';
$lang->project->divisionList['1'] = 'Create by product';
$lang->project->divisionSwitchList['0'] = 'Close';
$lang->project->divisionSwitchList['1'] = "Open";
$lang->project->waitProjects = 'Waiting Projects';
$lang->project->doingProjects = 'Ongoing Projects';
$lang->project->doingExecutions = 'Ongoing Executions';
@@ -208,7 +211,7 @@ $lang->project->changeProgram = '%s > Change project';
$lang->project->changeProgramTip = 'After modifying the project set, the products linked with the project will also modify the project set to which it belongs. Please confirm whether to modify it.';
$lang->project->linkedProjectsTip = 'Linked projects are as follows';
$lang->project->multiLinkedProductsTip = 'The following products linked to this project are also linked to other projects, please unlink before proceeding.';
$lang->project->noticeDivsion = "The current project is a single stage, click [Create by project] to change to multiple stages, each stage is only associated with one product.";
$lang->project->noticeDivsion = "The current project is a single stage, click [Open] to change to multiple stages, each stage is only associated with one product.";
$lang->project->linkStoryByPlanTips = "This action will associate all {$lang->SRCommon} under the selected plan to this project";
$lang->project->createExecution = "There is no {$lang->executionCommon} under this project, please create {$lang->executionCommon} first";
$lang->project->unlinkExecutionMember = "The user participated in %s executions such as %s%s. Do you want to remove the user from those executions as well? (The data related to this user will not be deleted.)";
+4 -1
View File
@@ -193,6 +193,9 @@ $lang->project->typeList['other'] = 'Other Projects';
$lang->project->divisionList['0'] = 'Create by project';
$lang->project->divisionList['1'] = 'Create by product';
$lang->project->divisionSwitchList['0'] = 'Close';
$lang->project->divisionSwitchList['1'] = "Open";
$lang->project->waitProjects = 'Waiting Projects';
$lang->project->doingProjects = 'Ongoing Projects';
$lang->project->doingExecutions = 'Ongoing Executions';
@@ -208,7 +211,7 @@ $lang->project->changeProgram = '%s > Change project';
$lang->project->changeProgramTip = 'Once the program is edited, the product that is linked to this program will be changed. Do you want to edit it?';
$lang->project->linkedProjectsTip = 'Linked projects are as follows';
$lang->project->multiLinkedProductsTip = 'The following products linked to this project are also linked to other projects, please unlink before proceeding.';
$lang->project->noticeDivsion = "The current project is a single stage, click [Create by project] to change to multiple stages, each stage is only associated with one product.";
$lang->project->noticeDivsion = "The current project is a single stage, click [Open] to change to multiple stages, each stage is only associated with one product.";
$lang->project->linkStoryByPlanTips = "This action will associate all {$lang->SRCommon} under the selected plan to this project";
$lang->project->createExecution = "There is no {$lang->executionCommon} under this project, please create {$lang->executionCommon} first";
$lang->project->unlinkExecutionMember = "The user participated in %s executions such as %s%s. Do you want to remove the user from those executions as well? (The data related to this user will not be deleted.)";
+4 -1
View File
@@ -193,6 +193,9 @@ $lang->project->typeList['other'] = 'Other Projects';
$lang->project->divisionList['0'] = 'Create by project';
$lang->project->divisionList['1'] = 'Create by product';
$lang->project->divisionSwitchList['0'] = 'Close';
$lang->project->divisionSwitchList['1'] = "Open";
$lang->project->waitProjects = 'Waiting Projects';
$lang->project->doingProjects = 'Ongoing Projects';
$lang->project->doingExecutions = 'Ongoing Executions';
@@ -208,7 +211,7 @@ $lang->project->changeProgram = '%s > Change project';
$lang->project->changeProgramTip = 'After modifying the project set, the products linked with the project will also modify the project set to which it belongs. Please confirm whether to modify it.';
$lang->project->linkedProjectsTip = 'Linked projects are as follows';
$lang->project->multiLinkedProductsTip = 'The following products linked to this project are also linked to other projects, please unlink before proceeding.';
$lang->project->noticeDivsion = "The current project is a single stage, click [Create by project] to change to multiple stages, each stage is only associated with one product.";
$lang->project->noticeDivsion = "The current project is a single stage, click [Open] to change to multiple stages, each stage is only associated with one product.";
$lang->project->linkStoryByPlanTips = "This action will associate all {$lang->SRCommon} under the selected plan to this project";
$lang->project->createExecution = "There is no {$lang->executionCommon} under this project, please create {$lang->executionCommon} first";
$lang->project->unlinkExecutionMember = "The user participated in %s executions such as %s%s. Do you want to remove the user from those executions as well? (The data related to this user will not be deleted.)";
+4 -1
View File
@@ -193,6 +193,9 @@ $lang->project->typeList['other'] = '其他项目';
$lang->project->divisionList['0'] = '按项目创建';
$lang->project->divisionList['1'] = "按{$lang->productCommon}创建";
$lang->project->divisionSwitchList['0'] = '关闭';
$lang->project->divisionSwitchList['1'] = "开启";
$lang->project->waitProjects = '未开始的项目';
$lang->project->doingProjects = '进行中的项目';
$lang->project->doingExecutions = '进行中的执行(最近1个)';
@@ -208,7 +211,7 @@ $lang->project->changeProgram = '%s > 修改项目集';
$lang->project->changeProgramTip = '修改项目集后,该项目关联产品的项目集也会被修改,请确认是否修改。';
$lang->project->linkedProjectsTip = '关联的项目如下';
$lang->project->multiLinkedProductsTip = '该项目关联的如下产品还关联了其他项目,请取消关联后再操作';
$lang->project->noticeDivsion = "当前项目为单套阶段,点击[按项目创建]可以变为多套阶段,每套阶段只关联一个{$lang->productCommon}。";
$lang->project->noticeDivsion = "当前项目为单套阶段,点击[开启]可以变为多套阶段,每套阶段只关联一个{$lang->productCommon}。";
$lang->project->linkStoryByPlanTips = "此操作会将所选计划下面的{$lang->SRCommon}全部关联到此项目中";
$lang->project->createExecution = "该项目下没有{$lang->executionCommon},请先创建{$lang->executionCommon}";
$lang->project->unlinkExecutionMember = "该用户参与了%s%s%s个{$lang->execution->common},是否同时将其移除?(该用户所产生的数据不会受影响。)";
+3 -3
View File
@@ -136,7 +136,7 @@
<?php if(!$project->division and count($linkedProducts) == 1):?>
<?php js::set('noticeDivsion', $lang->project->noticeDivsion);?>
<?php js::set('divisionList', $lang->project->divisionList);?>
<?php js::set('divisionSwitchList', $lang->project->divisionSwitchList);?>
<script>
$('#submit').click(function()
{
@@ -145,11 +145,11 @@ $('#submit').click(function()
'message' : noticeDivsion,
'buttons':{
confirm:{
label: divisionList['1'],
label: divisionSwitchList['1'],
className: 'btn'
},
cancel:{
label: divisionList['0'],
label: divisionSwitchList['0'],
className: 'btn-primary'
},
},