* [misc] locate project browse when post is emtpy.
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user