diff --git a/module/project/control.php b/module/project/control.php index 4fdfdb865c..2018a1fa75 100755 --- a/module/project/control.php +++ b/module/project/control.php @@ -594,6 +594,13 @@ class project extends control return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => $locateLink)); } + if(!$this->post->projectIdList) + { + /* Use a fallback link to locate in case session has no related data. */ + $locateLink = !empty($this->session->projectList) ? $this->session->projectList : $this->createLink('project', 'browse'); + return $this->locate($locateLink); + } + $projectIdList = $this->post->projectIdList; $projects = $this->dao->select('*')->from(TABLE_PROJECT)->where('id')->in($projectIdList)->fetchAll('id');