From 716a2cb2b828a0e464ec2cfab75aaba28fbc659f Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Thu, 17 Aug 2023 14:26:22 +0800 Subject: [PATCH] * Fix bug #37004. --- module/story/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/story/model.php b/module/story/model.php index 9790cee67a..2da46b7451 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -3375,6 +3375,7 @@ class storyModel extends model if($excludeStories) $storyQuery = $storyQuery . ' AND `id` NOT ' . helper::dbIN($excludeStories); if($excludeStatus) $storyQuery = $storyQuery . ' AND `status` NOT ' . helper::dbIN($excludeStatus); if($this->app->moduleName == 'productplan') $storyQuery .= " AND `status` NOT IN ('closed') AND `parent` >= 0 "; + if(in_array($this->app->moduleName, array('build', 'projectrelease', 'release'))) $storyQuery .= "AND `parent` >= 0 "; $allBranch = "`branch` = 'all'"; if(!empty($executionID)) {