diff --git a/module/my/control.php b/module/my/control.php index 10d4d4cf94..e148b6144e 100755 --- a/module/my/control.php +++ b/module/my/control.php @@ -1517,7 +1517,6 @@ EOF; $this->session->set('designList', $uri, 'project'); $this->session->set('productPlanList', $uri, 'product'); $this->session->set('releaseList', $uri, 'product'); - $this->session->set('programList', $uri, 'program'); $this->session->set('projectList', $uri, 'project'); $this->session->set('executionList', $uri, 'execution'); $this->session->set('taskList', $uri, 'execution'); diff --git a/module/program/control.php b/module/program/control.php index 02ce9e373c..7aebc08e59 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -196,7 +196,8 @@ class program extends control if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError())); $this->loadModel('action')->create('program', $programID, 'opened'); - return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'id' => $programID, 'locate' => $this->session->programList)); + $locateLink = $this->session->programList ? $this->session->programList : $this->createLink('program', 'browse'); + return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'id' => $programID, 'locate' => $locateLink)); } $extra = str_replace(array(',', ' '), array('&', ''), $extra);