Merge branch 'liyuchun_fixbug' into 'master'
Liyuchun fixbug See merge request easycorp/zentaopms!4293
This commit is contained in:
@@ -441,7 +441,7 @@ class productplan extends control
|
||||
$this->view->plan = $plan;
|
||||
$this->view->actions = $this->loadModel('action')->getList('productplan', $planID);
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noletter');
|
||||
$this->view->plans = $this->productplan->getPairs($plan->product, $plan->branch);
|
||||
$this->view->plans = $this->productplan->getPairs($plan->product, $plan->branch, '', true);
|
||||
$this->view->modules = $this->loadModel('tree')->getOptionMenu($plan->product);
|
||||
$this->view->type = $type;
|
||||
$this->view->orderBy = $orderBy;
|
||||
|
||||
@@ -1220,8 +1220,9 @@ class project extends control
|
||||
$queryID = ($type == 'bysearch') ? (int)$param : 0;
|
||||
$actionURL = $this->createLink('project', 'build', "projectID=$projectID&type=bysearch&queryID=myQueryID");
|
||||
|
||||
$devel = $project->model == 'waterfall' ? true : false;
|
||||
$executions = $this->loadModel('execution')->getByProject($projectID, 'all', '', true, $devel);
|
||||
$allExecutions = $this->loadModel('execution')->getByProject($projectID, 'all', '', true);
|
||||
$devel = $project->model == 'waterfall' ? true : false;
|
||||
$executions = $this->loadModel('execution')->getByProject($projectID, 'all', '', true, $devel);
|
||||
$this->config->build->search['fields']['execution'] = $this->project->lang->executionCommon;
|
||||
$this->config->build->search['params']['execution'] = array('operator' => '=', 'control' => 'select', 'values' => array('' => '') + $executions);
|
||||
|
||||
@@ -1278,6 +1279,7 @@ class project extends control
|
||||
$this->view->projectID = $projectID;
|
||||
$this->view->project = $project;
|
||||
$this->view->products = $products;
|
||||
$this->view->allExecutions = $allExecutions;
|
||||
$this->view->executions = $executions;
|
||||
$this->view->type = $type;
|
||||
|
||||
|
||||
@@ -4,7 +4,10 @@ $(function()
|
||||
{
|
||||
if(executions.length == 0)
|
||||
{
|
||||
alert(createExecution);
|
||||
var message = noDevStage;
|
||||
if(allExecutions.length == 0) message = createExecution;
|
||||
alert(message);
|
||||
|
||||
var link = createLink('execution', 'create', 'projectID=' + projectID);
|
||||
|
||||
window.parent.$.apps.open(link, 'execution');
|
||||
|
||||
@@ -195,6 +195,7 @@ $lang->project->createExecution = "There is no {$lang->executionCommon} u
|
||||
$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.)";
|
||||
$lang->project->unlinkExecutionMembers = "The team members you are removing are also in the execution team of this project. Do you want to remove them from the execution team too?";
|
||||
$lang->project->productTip = 'After clicking New Product, the project will not be linked to the selected product.';
|
||||
$lang->project->noDevStage = 'There is no R&D stage under this project, or you do not have access permissions. The creation of builds is not supported at the moment.';
|
||||
|
||||
$lang->project->tenThousand = '';
|
||||
$lang->project->hundredMillion = 'Hundred Million';
|
||||
|
||||
@@ -195,6 +195,7 @@ $lang->project->createExecution = "There is no {$lang->executionCommon} u
|
||||
$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.)";
|
||||
$lang->project->unlinkExecutionMembers = "The team members you are removing are also in the execution team of this project. Do you want to remove them from the execution team too?";
|
||||
$lang->project->productTip = 'After clicking New Product, the project will not be linked to the selected product.';
|
||||
$lang->project->noDevStage = 'There is no R&D stage under this project, or you do not have access permissions. The creation of builds is not supported at the moment.';
|
||||
|
||||
$lang->project->tenThousand = 'Ten Thousand';
|
||||
$lang->project->hundredMillion = 'Hundred Million';
|
||||
|
||||
@@ -195,6 +195,7 @@ $lang->project->createExecution = "There is no {$lang->executionCommon} u
|
||||
$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.)";
|
||||
$lang->project->unlinkExecutionMembers = "The team members you are removing are also in the execution team of this project. Do you want to remove them from the execution team too?";
|
||||
$lang->project->productTip = 'After clicking New Product, the project will not be linked to the selected product.';
|
||||
$lang->project->noDevStage = "Il n'y a pas de phase R&D dans ce projet, ou vous n'avez pas la permission d'accès. La version ne peut pas être créée pour le moment.";
|
||||
|
||||
$lang->project->tenThousand = '';
|
||||
$lang->project->hundredMillion = 'Hundred Million';
|
||||
|
||||
@@ -117,6 +117,7 @@ $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->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->noDevStage = 'There is no R&D stage under this project, or you do not have access permissions. The creation of builds is not supported at the moment.';
|
||||
|
||||
$lang->project->tenThousand = '';
|
||||
|
||||
|
||||
@@ -195,6 +195,7 @@ $lang->project->createExecution = "该项目下没有{$lang->executionCom
|
||||
$lang->project->unlinkExecutionMember = "该用户参与了%s%s%s个{$lang->execution->common},是否同时将其移除?(该用户所产生的数据不会受影响。)";
|
||||
$lang->project->unlinkExecutionMembers = "移除的团队成员还参与了项目下的执行,是否同步从执行团队中移除?";
|
||||
$lang->project->productTip = '点击新建产品后,项目将不会关联已选中的产品。';
|
||||
$lang->project->noDevStage = '该项目下没有研发类型的阶段,或者您没有权限访问,暂时不支持创建版本。';
|
||||
|
||||
$lang->project->tenThousand = '万';
|
||||
$lang->project->hundredMillion = '亿';
|
||||
|
||||
@@ -179,6 +179,7 @@ $lang->project->linkStoryByPlanTips = "此操作會將所選計划下面的{$
|
||||
$lang->project->createExecution = "該項目下沒有{$lang->executionCommon},請先創建{$lang->executionCommon}";
|
||||
$lang->project->unlinkExecutionMember = "該用戶參與了%s%s%s個{$lang->execution->common},是否同時將其移除?(該用戶所產生的數據不會受影響。)";
|
||||
$lang->project->unlinkExecutionMembers = "移除的團隊成員還參與了項目下的執行,是否同步從執行團隊中移除?";
|
||||
$lang->project->noDevStage = '該項目下沒有研發類型的階段,或者您沒有權限訪問,暫時不支持創建版本。';
|
||||
|
||||
$lang->project->tenThousand = '萬';
|
||||
|
||||
|
||||
@@ -2610,6 +2610,9 @@ class projectModel extends model
|
||||
if(isset($project->model) and $project->model == 'waterfall')
|
||||
{
|
||||
global $lang;
|
||||
$lang->project->createExecution = str_replace($this->lang->executionCommon, $lang->project->stage, $lang->project->createExecution);
|
||||
$lang->project->lastIteration = str_replace($this->lang->executionCommon, $lang->project->stage, $lang->project->lastIteration);
|
||||
|
||||
$this->loadModel('execution');
|
||||
$lang->executionCommon = $lang->project->stage;
|
||||
|
||||
|
||||
@@ -11,8 +11,10 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php js::set('allExecutions', $allExecutions)?>
|
||||
<?php js::set('executions', $executions)?>
|
||||
<?php js::set('projectID', $projectID)?>
|
||||
<?php js::set('noDevStage', $lang->project->noDevStage)?>
|
||||
<?php js::set('createExecution', $lang->project->createExecution)?>
|
||||
<?php js::set('confirmDelete', $lang->build->confirmDelete)?>
|
||||
<div id="mainMenu" class="clearfix table-row">
|
||||
|
||||
Reference in New Issue
Block a user