* [misc] locate project browse when post is emtpy.

This commit is contained in:
sunguangming
2025-08-21 08:38:55 +08:00
committed by tianshujie
parent 66ad547a5f
commit 17874e8c60
+7
View File
@@ -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');