From 43620096aa8b4706734248ac9331b027aaa5ca01 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 23 May 2024 09:04:19 +0800 Subject: [PATCH] * Fix bug #50057. --- module/project/control.php | 3 +-- module/project/ui/view.html.php | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/project/control.php b/module/project/control.php index 9e3488a40c..16113f20d9 100755 --- a/module/project/control.php +++ b/module/project/control.php @@ -486,8 +486,7 @@ class project extends control if(isInModal()) return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => true, 'closeModal' => true)); - $locateLink = $this->session->projectList && $from != 'view' ? $this->session->projectList : inLink('view', "projectID=$projectID"); - if(strpos($locateLink, 'index') > -1 && strpos($locateLink, 'app') > -1) $locateLink = inLink('view', "projectID=$projectID"); + $locateLink = $this->session->projectList && $from != 'view' ? $this->session->projectList : $this->createLink('project', 'view', "projectID=$projectID"); return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => $locateLink)); } diff --git a/module/project/ui/view.html.php b/module/project/ui/view.html.php index cdd337c6c4..e3e1fd060f 100644 --- a/module/project/ui/view.html.php +++ b/module/project/ui/view.html.php @@ -536,6 +536,7 @@ row ) ); +$config->project->actionList['edit']['url']['params'] = 'projectID={id}&from=view'; $actions = $this->loadModel('common')->buildOperateMenu($project); div (