change get... to include... .

This commit is contained in:
zhouxin
2021-12-08 08:52:25 +00:00
parent 6d4ed2f256
commit 728cb5a63e
+2 -2
View File
@@ -2809,7 +2809,7 @@ class storyModel extends model
* @access public
* @return array
*/
public function getUserStories($account, $type = 'assignedTo', $orderBy = 'id_desc', $pager = null, $storyType = 'story', $getLibStories = true)
public function getUserStories($account, $type = 'assignedTo', $orderBy = 'id_desc', $pager = null, $storyType = 'story', $includeLibStories = true)
{
$sql = $this->dao->select('t1.*, t2.name as productTitle')->from(TABLE_STORY)->alias('t1')
->leftJoin(TABLE_PRODUCT)->alias('t2')->on('t1.product = t2.id');
@@ -2825,7 +2825,7 @@ class storyModel extends model
->beginIF($type == 'reviewedBy')->andWhere("CONCAT(',', reviewedBy, ',')")->like("%,$account,%")->fi()
->beginIF($type == 'closedBy')->andWhere('closedBy')->eq($account)->fi()
->fi()
->beginIF($getLibStories == false)->andWhere('t1.lib')->eq('0')->fi()
->beginIF($includeLibStories == false)->andWhere('t1.lib')->eq('0')->fi()
->orderBy($orderBy)
->page($pager)
->fetchAll('id');