Merge branch 'sprint/master_lanzongjun_fixbug' into 'master'

* Fix Task #77263#77267 Bug #30022

See merge request easycorp/zentaopms!6310
This commit is contained in:
孙广明
2022-11-23 05:18:07 +00:00
7 changed files with 18 additions and 7 deletions
+1
View File
@@ -205,6 +205,7 @@ $lang->action->desc->estimated = '$date, by <strong>$actor</strong> e
$lang->action->desc->run = '$date, by <strong>$actor</strong> executed.' . "\n";
$lang->action->desc->syncprogram = '$date, started by <strong>$actor</strong>(starting the project sets the program status as Ongoing).' . "\n";
$lang->action->desc->syncproject = '$date, starting the execution sets the project status as Ongoing.' . "\n";
$lang->action->desc->syncmultipleproject = '$date, starting the task sets the project status as Ongoing.' . "\n";
$lang->action->desc->syncexecution = '$date, starting the task sets the execution status as Ongoing.' . "\n";
$lang->action->desc->syncexecutionbychild = '$date, starting the sub stage sets the execution status as Ongoing.' . "\n";
$lang->action->desc->importfromgitlab = '$date, Issue associate created from gitlab by <strong>$actor</strong>.' . "\n";
+1
View File
@@ -205,6 +205,7 @@ $lang->action->desc->estimated = '$date, by <strong>$actor</strong> e
$lang->action->desc->run = '$date, by <strong>$actor</strong> executed.' . "\n";
$lang->action->desc->syncprogram = '$date, started by <strong>$actor</strong>(starting the project sets the program status as Ongoing).' . "\n";
$lang->action->desc->syncproject = '$date, starting the execution sets the project status as Ongoing.' . "\n";
$lang->action->desc->syncmultipleproject = '$date, starting the task sets the project status as Ongoing.' . "\n";
$lang->action->desc->syncexecution = '$date, starting the task sets the execution status as Ongoing.' . "\n";
$lang->action->desc->syncexecutionbychild = '$date, starting the sub stage sets the execution status as Ongoing.' . "\n";
$lang->action->desc->importfromgitlab = '$date, Issue associate created from gitlab by <strong>$actor</strong>.' . "\n";
+1
View File
@@ -205,6 +205,7 @@ $lang->action->desc->estimated = '$date, by <strong>$actor</strong> e
$lang->action->desc->run = '$date, by <strong>$actor</strong> executed.' . "\n";
$lang->action->desc->syncprogram = '$date, started by <strong>$actor</strong>(starting the project sets the program status as Ongoing).' . "\n";
$lang->action->desc->syncproject = '$date, starting the execution sets the project status as Ongoing.' . "\n";
$lang->action->desc->syncmultipleproject = '$date, starting the task sets the project status as Ongoing.' . "\n";
$lang->action->desc->syncexecution = '$date, starting the task sets the execution status as Ongoing.' . "\n";
$lang->action->desc->syncexecutionbychild = '$date, starting the sub stage sets the execution status as Ongoing.' . "\n";
$lang->action->desc->importfromgitlab = '$date, Issue associate created from gitlab by <strong>$actor</strong>.' . "\n";
+1
View File
@@ -205,6 +205,7 @@ $lang->action->desc->estimated = '$date, 由 <strong>$actor</strong>
$lang->action->desc->run = '$date, 由 <strong>$actor</strong> 执行。' . "\n";
$lang->action->desc->syncprogram = '$date, 由 <strong>$actor</strong> 启动(因项目开始而启动项目集)。' . "\n";
$lang->action->desc->syncproject = '$date, 系统判断由于' . $lang->executionCommon .'开始,将项目状态置为进行中。' . "\n";
$lang->action->desc->syncmultipleproject = '$date, 系统判断由于任务开始,将项目状态置为进行中。' . "\n";
$lang->action->desc->syncexecution = '$date, 系统判断由于任务开始,将' . $lang->executionCommon . '状态置为进行中。' . "\n";
$lang->action->desc->syncexecutionbychild = '$date, 系统判断由于子阶段开始,将' . $lang->executionCommon . '状态置为进行中。' . "\n";
$lang->action->desc->importfromgitlab = '$date, 由 <strong>$actor</strong> 从Gitlab的Issue关联创建。' . "\n";
+2 -1
View File
@@ -125,7 +125,8 @@ class commonModel extends model
->where('id')->eq($projectID)
->exec();
$this->loadModel('action')->create('project', $projectID, 'syncproject');
$actionType = $project->multiple ? 'syncproject' : 'syncmultipleproject';
$this->loadModel('action')->create('project', $projectID, $actionType);
}
return $project;
}
+1 -1
View File
@@ -4034,7 +4034,7 @@ class execution extends control
$project = $this->project->getByID($this->session->project);
if(!empty($project->model) and $project->model == 'waterfall') $this->lang->executionCommon = $this->lang->project->stage;
$this->view->fileName = (in_array($status, array('all', 'undone')) ? $this->lang->execution->$status : $this->lang->execution->statusList[$status]) . $this->lang->executionCommon;
$this->view->fileName = (in_array($status, array('all', 'undone')) ? $this->lang->execution->$status : $this->lang->execution->statusList[$status]) . $this->lang->execution->common;
$this->display();
}
+11 -5
View File
@@ -838,16 +838,22 @@ class reportModel extends model
->orderBy('`order` desc')
->fetchAll('id');
$teamExecutions = $this->dao->select('*')->from(TABLE_TEAM)
->where('type')->eq('execution')
$teamExecutions = $this->dao->select('t1.root')->from(TABLE_TEAM)->alias('t1')
->leftJoin(TABLE_EXECUTION)->alias('t2')->on('t1.root=t2.id')
->where('t1.type')->eq('execution')
->beginIF($accounts)->andWhere('account')->in($accounts)->fi()
->andWhere('t2.multiple')->eq('1')
->andWhere('LEFT(`join`, 4)')->eq($year)
->fetchPairs('root', 'root');
$taskExecutions = $this->dao->select('execution')->from(TABLE_TASK)
->where('LEFT(finishedDate, 4)')->eq($year)
->andWhere('deleted')->eq(0)
$taskExecutions = $this->dao->select('t1.execution')->from(TABLE_TASK)->alias('t1')
->leftJoin(TABLE_EXECUTION)->alias('t2')->on('t1.execution=t2.id')
->where('LEFT(t1.finishedDate, 4)')->eq($year)
->beginIF($accounts)->andWhere('finishedBy')->in($accounts)->fi()
->andWhere('t2.multiple')->eq('1')
->andWhere('t1.deleted')->eq(0)
->fetchPairs('execution', 'execution');
if($teamExecutions or $taskExecutions)
{
$executions += $this->dao->select('id,name')->from(TABLE_EXECUTION)