Merge branch 'wyd_fixbug' into 'master'

Wyd fixbug

See merge request easycorp/zentaopms!2461
This commit is contained in:
孙广明
2022-03-23 00:53:36 +00:00
6 changed files with 15 additions and 5 deletions
+2
View File
@@ -117,6 +117,8 @@ class projectModel extends model
*/
public function saveState($projectID = 0, $projects = array())
{
if(defined('TUTORIAL')) return $projectID;
if($projectID == 0 and $this->cookie->lastProject) $projectID = $this->cookie->lastProject;
if($projectID == 0 and $this->session->project == '') $projectID = key($projects);
$this->session->set('project', (int)$projectID, $this->app->tab);