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)) {