* Finish Task #79670
This commit is contained in:
@@ -934,6 +934,17 @@ class execution extends control
|
||||
$moduleTree = $this->tree->getProjectStoryTreeMenu($executionID, 0, array('treeModel', $createModuleLink));
|
||||
}
|
||||
|
||||
$executionProductList = $this->loadModel('product')->getProducts($executionID);
|
||||
$multiBranch = false;
|
||||
foreach($executionProductList as $executionProduct)
|
||||
{
|
||||
if($executionProduct->type != 'normal')
|
||||
{
|
||||
$multiBranch = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Assign. */
|
||||
$this->view->title = $title;
|
||||
$this->view->position = $position;
|
||||
@@ -963,6 +974,7 @@ class execution extends control
|
||||
$this->view->canBeChanged = common::canModify('execution', $execution); // Determines whether an object is editable.
|
||||
$this->view->showBranch = $showBranch;
|
||||
$this->view->storyStages = $this->product->batchGetStoryStage($stories);
|
||||
$this->view->multiBranch = $multiBranch;
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -597,3 +597,6 @@ $lang->execution->gantt->exporting = 'Exporting...';
|
||||
$lang->execution->gantt->exportFail = 'Failed to export.';
|
||||
|
||||
$lang->execution->boardColorList = array('#32C5FF', '#006AF1', '#9D28B2', '#FF8F26', '#7FBB00', '#424BAC', '#66c5f8', '#EC2761');
|
||||
|
||||
$lang->execution->linkBranchStoryByPlanTips = "When a scheduled association requirement is executed, only the active requirements associated with the %s of this execution are imported.";
|
||||
$lang->execution->linkNormalStoryByPlanTips = "Only the active requirements are imported when the scheduled requirements are associated.";
|
||||
@@ -597,3 +597,6 @@ $lang->execution->gantt->exporting = 'Exporting...';
|
||||
$lang->execution->gantt->exportFail = 'Failed to export.';
|
||||
|
||||
$lang->execution->boardColorList = array('#32C5FF', '#006AF1', '#9D28B2', '#FF8F26', '#7FBB00', '#424BAC', '#66c5f8', '#EC2761');
|
||||
|
||||
$lang->execution->linkBranchStoryByPlanTips = "When a scheduled association requirement is executed, only the active requirements associated with the %s of this execution are imported.";
|
||||
$lang->execution->linkNormalStoryByPlanTips = "Only the active requirements are imported when the scheduled requirements are associated.";
|
||||
@@ -597,3 +597,6 @@ $lang->execution->gantt->exporting = 'Exporting...';
|
||||
$lang->execution->gantt->exportFail = 'Failed to export.';
|
||||
|
||||
$lang->execution->boardColorList = array('#32C5FF', '#006AF1', '#9D28B2', '#FF8F26', '#7FBB00', '#424BAC', '#66c5f8', '#EC2761');
|
||||
|
||||
$lang->execution->linkBranchStoryByPlanTips = "When a scheduled association requirement is executed, only the active requirements associated with the %s of this execution are imported.";
|
||||
$lang->execution->linkNormalStoryByPlanTips = "Only the active requirements are imported when the scheduled requirements are associated.";
|
||||
@@ -597,3 +597,6 @@ $lang->execution->gantt->exporting = '正在导出……';
|
||||
$lang->execution->gantt->exportFail = '导出失败。';
|
||||
|
||||
$lang->execution->boardColorList = array('#32C5FF', '#006AF1', '#9D28B2', '#FF8F26', '#7FBB00', '#424BAC', '#66c5f8', '#EC2761');
|
||||
|
||||
$lang->execution->linkBranchStoryByPlanTips = "执行按计划关联需求时,只导入本执行所关联%s的激活状态的需求。";
|
||||
$lang->execution->linkNormalStoryByPlanTips = "执行按计划关联需求时,只导入激活状态的需求。";
|
||||
@@ -402,7 +402,10 @@
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="icon icon-close"></i></button>
|
||||
<?php $linkStoryByPlanTips = $execution->multiple ? $lang->execution->linkStoryByPlanTips : str_replace($lang->executionCommon, $lang->projectCommon, $lang->execution->linkStoryByPlanTips);?>
|
||||
<?php
|
||||
$linkStoryByPlanTips = $multiBranch ? sprintf($lang->execution->linkBranchStoryByPlanTips, $lang->project->branch) : $lang->execution->linkNormalStoryByPlanTips;
|
||||
$linkStoryByPlanTips = $execution->multiple ? $linkStoryByPlanTips : str_replace($lang->executionCommon, $lang->projectCommon, $linkStoryByPlanTips);
|
||||
?>
|
||||
<h4 class="modal-title"><?php echo $lang->execution->linkStoryByPlan;?></h4><?php echo '(' . $linkStoryByPlanTips . ')';?>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
@@ -620,7 +620,11 @@ js::set('vision', $this->config->vision);
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="icon icon-close"></i></button>
|
||||
<h4 class="modal-title"><?php echo $lang->execution->linkStoryByPlan;?></h4><?php echo '(' . $lang->project->linkStoryByPlanTips . ')';?>
|
||||
<h4 class="modal-title">
|
||||
<?php
|
||||
$linkStoryByPlanTips = $product->type == 'normal' ? $lang->project->linkNormalStoryByPlanTips : sprintf($lang->project->linkBranchStoryByPlanTips, $lang->product->branchName[$product->type]);
|
||||
echo $lang->execution->linkStoryByPlan;?></h4><?php echo '(' . $linkStoryByPlanTips . ')';
|
||||
?>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class='input-group'>
|
||||
|
||||
@@ -382,3 +382,6 @@ $lang->project->copyProject->nameTips = '『Project Name』Cannot be r
|
||||
$lang->project->copyProject->codeTips = '『Project Code』Cannot be repeated.';
|
||||
$lang->project->copyProject->endTips = '『Schedule End』Cannot be empty.';
|
||||
$lang->project->copyProject->daysTips = '『Available working days』Should be numerical.';
|
||||
|
||||
$lang->project->linkBranchStoryByPlanTips = "When the project is scheduled to associate requirements, only the activated requirements associated with the %s of the project are imported.";
|
||||
$lang->project->linkNormalStoryByPlanTips = "When the project plans to associate requirements, only the requirements that are active are imported.";
|
||||
@@ -382,3 +382,6 @@ $lang->project->copyProject->nameTips = '『Project Name』Cannot be r
|
||||
$lang->project->copyProject->codeTips = '『Project Code』Cannot be repeated.';
|
||||
$lang->project->copyProject->endTips = '『Schedule End』Cannot be empty.';
|
||||
$lang->project->copyProject->daysTips = '『Available working days』Should be numerical.';
|
||||
|
||||
$lang->project->linkBranchStoryByPlanTips = "When the project is scheduled to associate requirements, only the activated requirements associated with the %s of the project are imported.";
|
||||
$lang->project->linkNormalStoryByPlanTips = "When the project plans to associate requirements, only the requirements that are active are imported.";
|
||||
@@ -382,3 +382,6 @@ $lang->project->copyProject->nameTips = '『Project Name』Cannot be r
|
||||
$lang->project->copyProject->codeTips = '『Project Code』Cannot be repeated.';
|
||||
$lang->project->copyProject->endTips = '『Schedule End』Cannot be empty.';
|
||||
$lang->project->copyProject->daysTips = '『Available working days』Should be numerical.';
|
||||
|
||||
$lang->project->linkBranchStoryByPlanTips = "When the project is scheduled to associate requirements, only the activated requirements associated with the %s of the project are imported.";
|
||||
$lang->project->linkNormalStoryByPlanTips = "When the project plans to associate requirements, only the requirements that are active are imported.";
|
||||
@@ -382,3 +382,6 @@ $lang->project->copyProject->nameTips = '『项目名称』不可重
|
||||
$lang->project->copyProject->codeTips = '『项目代号』不可重复需要修改。';
|
||||
$lang->project->copyProject->endTips = '『计划完成』不能为空。';
|
||||
$lang->project->copyProject->daysTips = '『可用工作日』应当是数字。';
|
||||
|
||||
$lang->project->linkBranchStoryByPlanTips = "项目按计划关联需求时,只导入本项目所关联%s的激活状态的需求。";
|
||||
$lang->project->linkNormalStoryByPlanTips = "项目按计划关联需求时,只导入激活状态的需求。";
|
||||
|
||||
Reference in New Issue
Block a user