From 0c1309154f338ef8aa712d263e05a94fe639f74f Mon Sep 17 00:00:00 2001 From: liumengyi Date: Mon, 25 Nov 2024 09:07:40 +0800 Subject: [PATCH] * [misc] optimize code. --- module/programplan/control.php | 2 +- module/project/control.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/programplan/control.php b/module/programplan/control.php index 94465bb631..abef3c1527 100644 --- a/module/programplan/control.php +++ b/module/programplan/control.php @@ -106,7 +106,7 @@ class programplan extends control $locate = $this->session->projectPlanList ? $this->session->projectPlanList : $this->createLink('project', 'execution', "status=all&projectID={$projectID}&orderBy=order_asc&productID={$productID}"); if($from == 'projectCreate') $locate = $this->createLink('project', 'create', "model=&programID=0©ProjectID=0&extra=showTips=1,project=$projectID"); - $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $locate)); + $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => $locate)); } $project = $this->project->getById($projectID); diff --git a/module/project/control.php b/module/project/control.php index 6a5660d867..4b950901cb 100755 --- a/module/project/control.php +++ b/module/project/control.php @@ -478,10 +478,10 @@ class project extends control $session = $this->createLink('programplan', 'browse', "projectID=$projectID&productID=$productID&type=lists", '', false, $projectID); if(in_array($this->config->edition, array('max', 'ipd'))) $session = $this->createLink('project', 'execution', "status=undone&projectID=$projectID", '', false); $this->session->set('projectPlanList', $session, 'project'); - return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('programplan', 'create', "projectID=$projectID&productID=0&planID=0&executionType=stage&from=projectCreate", '', false, $projectID))); + return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => $this->createLink('programplan', 'create', "projectID=$projectID&productID=0&planID=0&executionType=stage&from=projectCreate", '', false, $projectID))); } - return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('create', "model=$model&programID=$programID©ProjectID=$projectID&extra=showTips=1,project=$projectID"))); + return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => inlink('create', "model=$model&programID=$programID©ProjectID=$projectID&extra=showTips=1,project=$projectID"))); } $this->projectZen->buildCreateForm((string)$model, (int)$programID, (int)$copyProjectID, (string)$extra);