From a96e3185eea8b0d250544d2dd7b0e9ee8f28be91 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Wed, 31 Jan 2024 15:09:39 +0800 Subject: [PATCH] * Adjust build link story sql. --- module/story/model.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/story/model.php b/module/story/model.php index b8bb2bc3da..d0830ac26a 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -2310,7 +2310,6 @@ class storyModel extends model if($this->app->moduleName == 'release' or $this->app->moduleName == 'build') { $storyQuery .= " AND `status` != 'draft'"; // Fix bug #990. - if($this->app->moduleName == 'build' && $executionID) $storyQuery .= " AND `project` = $executionID"; } else { @@ -2349,7 +2348,7 @@ class storyModel extends model ->fetchPairs(); $review = $this->storyTao->getRevertStoryIdList((int)$productID); - $sql = str_replace(array('`product`', '`version`', '`branch`', '`project`'), array('t1.`product`', 't1.`version`', 't1.`branch`', 't2.`project`'), $sql); + $sql = str_replace(array('`product`', '`version`', '`branch`'), array('t1.`product`', 't1.`version`', 't1.`branch`'), $sql); if(strpos($sql, 'result') !== false) { if(strpos($sql, 'revert') !== false)