From 4c7fe09c1e98eef0b4ce7b7b67eeba8ef965f7f1 Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Thu, 22 Sep 2022 15:24:24 +0800 Subject: [PATCH] * fix bug #27793 --- module/project/control.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/module/project/control.php b/module/project/control.php index ef03b12551..824b7d8120 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -580,6 +580,14 @@ class project extends control { $this->lang->project->aclList = $this->lang->project->kanbanAclList; $this->lang->project->subAclList = $this->lang->project->kanbanSubAclList; + $this->lang->project->noSprint = $this->lang->project->kanban; + } + + if($model == 'scrum') + { + $this->lang->project->noSprint = empty($this->config->custom->sprintConcept) ? + $this->config->executionCommonList[$this->app->getClientLang()][0] : + $this->config->executionCommonList[$this->app->getClientLang()][1]; } $this->view->title = $this->lang->project->create; @@ -728,6 +736,15 @@ class project extends control if($project->model != 'kanban') $canChangeModel = $this->project->checkCanChangeModel($projectID, $project->model); + if($project->model == 'kanban') $this->lang->project->noSprint = $this->lang->project->kanban; + + if($project->model == 'scrum') + { + $this->lang->project->noSprint = empty($this->config->custom->sprintConcept) ? + $this->config->executionCommonList[$this->app->getClientLang()][0] : + $this->config->executionCommonList[$this->app->getClientLang()][1]; + } + $this->view->title = $this->lang->project->edit; $this->view->position[] = $this->lang->project->edit;