* fix bug for search in link story.

This commit is contained in:
wangyidong
2017-12-28 10:16:44 +08:00
parent ee5036c632
commit a8a1d0c11c
+1 -1
View File
@@ -1596,7 +1596,7 @@ class storyModel extends model
->fetchPairs();
$sql = str_replace(array('`product`', '`version`'), array('t1.`product`', 't1.`version`'), $sql);
$tmpStories = $this->dao->select('*')->from(TABLE_STORY)->alias('t1')
$tmpStories = $this->dao->select('t1.*')->from(TABLE_STORY)->alias('t1')
->leftJoin(TABLE_PROJECTSTORY)->alias('t2')->on('t1.id=t2.story')
->where($sql)
->beginIF($productID != 'all' and $productID != '')->andWhere('t1.`product`')->eq((int)$productID)->fi()