From 184d40cc782bc67e960c59334b2ec64ec31a66d5 Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Thu, 12 Jan 2017 13:23:26 +0800 Subject: [PATCH] * fix bug #990. --- module/story/model.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index 8bdfd690ce..b7e065e224 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -1469,7 +1469,14 @@ class storyModel extends model unset($branches[0]); $branches = join(',', $branches); if($branches) $storyQuery .= " AND `branch`" . helper::dbIN("0,$branches"); - $storyQuery .= " AND `status` NOT IN ('draft', 'closed')"; + if($this->app->moduleName == 'release' or $this->app->moduleName == 'build') + { + $storyQuery .= " AND `status` NOT IN ('draft')";// Fix bug #990. + } + else + { + $storyQuery .= " AND `status` NOT IN ('draft', 'closed')"; + } } elseif($branch) {