* Optimized code for task #55684, #55683.

This commit is contained in:
liumengyi
2022-05-31 13:55:59 +08:00
parent 04d79592c4
commit 1b89018e2f
2 changed files with 2 additions and 8 deletions
+1 -3
View File
@@ -2486,9 +2486,7 @@ class projectModel extends model
if($project and $project->model == 'waterfall') $model = $project->model;
if($project and $project->model == 'kanban')
{
$model = $project->model . 'Project';
global $lang;
$model = $project->model . 'Project';
$lang->executionCommon = $lang->project->kanban;
}
+1 -5
View File
@@ -249,11 +249,7 @@ class testtask extends control
$builds = empty($productID) ? array() : $this->loadModel('build')->getBuildPairs($productID, 'all', 'notrunk');
$execution = $this->loadModel('execution')->getByID($executionID);
if(!empty($execution) and $execution->type == 'kanban')
{
global $lang;
$this->lang->testtask->execution = str_replace($lang->execution->common, $lang->kanban->common, $this->lang->testtask->execution);
}
if(!empty($execution) and $execution->type == 'kanban') $this->lang->testtask->execution = str_replace($this->lang->execution->common, $this->lang->kanban->common, $this->lang->testtask->execution);
/* Set menu. */
$productID = $this->product->saveState($productID, $this->products);