From 4b31aa61db2b307cd952d2a44bd9cde12801fd0e Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 27 Dec 2023 16:16:40 +0800 Subject: [PATCH] * Fix bug #42504. --- module/build/control.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/build/control.php b/module/build/control.php index 6e1aae19d5..2544502221 100644 --- a/module/build/control.php +++ b/module/build/control.php @@ -208,7 +208,10 @@ class build extends control if($message) $this->lang->saveSuccess = $message; if(dao::isError()) return $this->sendError(dao::getError()); - return $this->sendSuccess(array('load' => helper::createLink($from, 'build', "executionID={$build->$from}"))); + + $moduleName = $from == 'project' ? 'projectbuild' : $from; + $methodName = $from == 'project' ? 'browse' : 'build'; + return $this->sendSuccess(array('load' => $this->createLink($moduleName, $methodName, "executionID={$build->$from}"))); } /**