From 17874e8c60ad58fbafde508361cb758cca1fd0bf Mon Sep 17 00:00:00 2001 From: sunguangming Date: Wed, 20 Aug 2025 03:54:09 +0000 Subject: [PATCH] * [misc] locate project browse when post is emtpy. --- module/project/control.php | 7 +++++++ 1 file changed, 7 insertions(+) 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');