* Fix invalid filter label in execution-story.

This commit is contained in:
zhouxin
2023-10-25 16:02:28 +08:00
parent 84b904f563
commit f6f2921cbf
+2 -1
View File
@@ -536,7 +536,8 @@ class storyTao extends storyModel
$browseType = $this->session->executionStoryBrowseType;
$unclosedStatus = $this->getUnclosedStatusKeys();
return $storyDAO->beginIF(!empty($productID))->andWhere('t1.product')->eq($productID)->fi()
->beginIF($browseType and strpos('changing|', $browseType) !== false)->andWhere('t2.status')->in($unclosedStatus)->fi()
->beginIF(strpos('draft|reviewing|changing|closed', $browseType) !== false)->andWhere('t2.status')->eq($browseType)->fi()
->beginIF($browseType == 'unclosed')->andWhere('t2.status')->in($unclosedStatus)->fi()
->orderBy($orderBy)
->page($pager, 't2.id')
->fetchAll('id');