From 32a7b76bd2ca815e439f76269ebf9c9dcadbe1dd Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 31 Oct 2016 15:56:03 +0800 Subject: [PATCH] * fix bug #880. --- module/project/model.php | 1 - module/story/view/create.html.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/module/project/model.php b/module/project/model.php index bfbededdf6..d9762f31fa 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -198,7 +198,6 @@ class projectModel extends model if($projectID > 0) $this->session->set('project', (int)$projectID); if($projectID == 0 and $this->cookie->lastProject) $this->session->set('project', (int)$this->cookie->lastProject); if($projectID == 0 and $this->session->project == '') $this->session->set('project', $projects[0]); - if(!in_array($this->session->project, $projects)) $this->session->set('project', $projects[0]); return $this->session->project; } diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php index 6d9f2d5f0d..9862fcc090 100644 --- a/module/story/view/create.html.php +++ b/module/story/view/create.html.php @@ -126,7 +126,7 @@   - story->priList, $pri, "class='hide'");?> + story->priList, $pri, "class='hide'");?>