* Finish task #116726.

This commit is contained in:
sunguangming
2024-05-10 17:01:23 +08:00
parent 0442b50dce
commit 92ae63b031
3 changed files with 41 additions and 0 deletions
+24
View File
@@ -124,6 +124,30 @@ class transfer extends control
return $this->send(array('result' => 'success', 'load' => $locate, 'closeModal' => true));
}
/* 项目和执行中的需求导入时应选择需求类型. */
if($module == 'story')
{
$this->app->loadLang('story');
$storyType = '';
if($this->app->tab == 'project')
{
$project = $this->loadModel('project')->fetchByID($this->session->project);
$storyType = $project->storyType;
}
if($storyType)
{
foreach($this->lang->story->typeList as $key => $value)
{
if(strpos(",$storyType,", ",$key,") === false) unset($this->lang->story->typeList[$key]);
}
}
$this->view->isProjectStory = $this->app->tab == 'project';
$this->view->typeList = $this->lang->story->typeList;
}
$this->view->title = $this->lang->transfer->importCase;
$this->display();
}