* Adjust build link story sql.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user