diff --git a/module/execution/control.php b/module/execution/control.php index e2dec1e1fd..a254d3166a 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -3102,6 +3102,9 @@ class execution extends control */ public function ajaxGetCopyProjectExecutions(int $projectID = 0, int $copyExecutionID = 0) { + $project = $this->loadModel('project')->fetchByID($projectID); + if($project) $this->executionZen->correctExecutionCommonLang($project, zget($this->config->execution->modelList, $project->model, 'scrum')); + $this->view->executions = $this->execution->getList($projectID, 'all', 'all', 0, 0, 0, null, false); $this->view->copyExecutionID = $copyExecutionID; $this->display(); diff --git a/module/execution/lang/de.php b/module/execution/lang/de.php index ddc990f8e7..37da3242c3 100644 --- a/module/execution/lang/de.php +++ b/module/execution/lang/de.php @@ -127,7 +127,6 @@ $lang->execution->viewByUser = 'By User'; $lang->execution->oneProduct = "Only one stage can be linked {$lang->productCommon}"; $lang->execution->noLinkProduct = "Stage not linked {$lang->productCommon}"; $lang->execution->recent = 'Recent visits: '; -$lang->execution->copyNoExecution = 'There are no ' . $lang->executionCommon . 'available to copy.'; $lang->execution->noTeam = 'No team members at the moment'; $lang->execution->or = ' or '; $lang->execution->selectProject = 'Please select ' . $lang->projectCommon; diff --git a/module/execution/lang/en.php b/module/execution/lang/en.php index 7954ce1340..9d362ae89d 100644 --- a/module/execution/lang/en.php +++ b/module/execution/lang/en.php @@ -127,7 +127,6 @@ $lang->execution->viewByUser = 'By User'; $lang->execution->oneProduct = "Only one stage can be linked {$lang->productCommon}"; $lang->execution->noLinkProduct = "Not linked {$lang->productCommon}!"; $lang->execution->recent = 'Recent visits: '; -$lang->execution->copyNoExecution = 'There are no ' . $lang->executionCommon . 'available to copy.'; $lang->execution->noTeam = 'No team members at the moment'; $lang->execution->or = ' or '; $lang->execution->selectProject = 'Please select ' . $lang->projectCommon; @@ -372,7 +371,7 @@ $lang->execution->copyTeam = 'Copy Team'; $lang->execution->copyFromTeam = "Copy from {$lang->execution->common} Team: %s"; $lang->execution->noMatched = "No {$lang->execution->common} including '%s'can be found."; $lang->execution->copyTitle = "Choose a {$lang->execution->common} to copy."; -$lang->execution->copyNoExecution = "No {$lang->execution->common} can be copied."; +$lang->execution->copyNoExecution = "No {$lang->executionCommon} can be copied."; $lang->execution->copyFromExecution = "Copy from {$lang->execution->common} %s"; $lang->execution->cancelCopy = 'Cancel Copy'; $lang->execution->byPeriod = 'By Time'; diff --git a/module/execution/lang/fr.php b/module/execution/lang/fr.php index 3aac891fc7..cd9eaf5b24 100644 --- a/module/execution/lang/fr.php +++ b/module/execution/lang/fr.php @@ -127,7 +127,6 @@ $lang->execution->viewByUser = 'Par Utilisateur'; $lang->execution->oneProduct = "Only one stage can be linked {$lang->productCommon}"; $lang->execution->noLinkProduct = "Stage not linked {$lang->productCommon}"; $lang->execution->recent = 'Recent visits: '; -$lang->execution->copyNoExecution = 'There are no ' . $lang->executionCommon . 'available to copy.'; $lang->execution->noTeam = 'No team members at the moment'; $lang->execution->or = ' or '; $lang->execution->selectProject = 'Please select ' . $lang->projectCommon; diff --git a/module/execution/lang/zh-cn.php b/module/execution/lang/zh-cn.php index b07406598c..e5da383853 100644 --- a/module/execution/lang/zh-cn.php +++ b/module/execution/lang/zh-cn.php @@ -127,7 +127,6 @@ $lang->execution->viewByUser = '按用户查看'; $lang->execution->oneProduct = "阶段只能关联一个{$lang->productCommon}"; $lang->execution->noLinkProduct = "关联{$lang->productCommon}不能为空!"; $lang->execution->recent = '近期访问:'; -$lang->execution->copyNoExecution = '没有可用的' . $lang->executionCommon . '来复制'; $lang->execution->noTeam = '暂时没有团队成员'; $lang->execution->or = '或'; $lang->execution->selectProject = '请选择' . $lang->projectCommon; @@ -372,7 +371,7 @@ $lang->execution->copyTeam = '复制团队'; $lang->execution->copyFromTeam = "复制自{$lang->execution->common}团队: %s"; $lang->execution->noMatched = "找不到包含'%s'的{$lang->execution->common}"; $lang->execution->copyTitle = "请选择一个{$lang->execution->common}来复制"; -$lang->execution->copyNoExecution = "没有可用的{$lang->execution->common}来复制"; +$lang->execution->copyNoExecution = "没有可用的{$lang->executionCommon}来复制"; $lang->execution->copyFromExecution = "复制自{$lang->execution->common} %s"; $lang->execution->cancelCopy = '取消复制'; $lang->execution->byPeriod = '按时间段';