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)