This commit is contained in:
chenfeiCF
2017-01-12 13:23:26 +08:00
parent a301cd10a1
commit 184d40cc78
+8 -1
View File
@@ -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)
{