diff --git a/extension/lite/todo/ext/lang/zh-cn/lite.php b/extension/lite/todo/ext/lang/zh-cn/lite.php index c3f4110cde..636eb24d3c 100644 --- a/extension/lite/todo/ext/lang/zh-cn/lite.php +++ b/extension/lite/todo/ext/lang/zh-cn/lite.php @@ -1,6 +1,7 @@ todo->typeList['task'] = '任务'; +if($this->config->visions == ',lite,') unset($lang->todo->typeList['feedback']); unset($lang->todo->typeList['bug']); unset($lang->todo->typeList['testtask']); unset($lang->todo->typeList['review']); diff --git a/module/project/model.php b/module/project/model.php index b273f9c124..d3b3dc77f0 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -120,8 +120,9 @@ class projectModel extends model if(defined('TUTORIAL')) return $projectID; if($projectID == 0 and $this->cookie->lastProject) $projectID = $this->cookie->lastProject; - if($projectID == 0 or $this->session->project == '') $projectID = key($projects); - + if($projectID == 0 and $this->session->project == '') or !isset($projects[$projectID])) $projectID = key($projects); + if($projectID == 0) $projectID = key($projects); + $this->session->set('project', (int)$projectID, $this->app->tab); if(!isset($projects[$this->session->project]))