* [bug#64434,done,0.1h] optimize code.

This commit is contained in:
tianshujie
2025-08-06 15:22:15 +08:00
parent 563158081f
commit 17e1c85b0f
+1 -1
View File
@@ -527,7 +527,7 @@ class storyModel extends model
->leftJoin(TABLE_STORY)->alias('t2')->on('t1.story = t2.id')
->where('t1.project')->in($projectIdList)
->andWhere('t2.deleted')->eq(0)
->beginIF($storyType)->andWhere('t2.type')->in($storyType)->fi()
->beginIF(strpos(',story,requirement,epic,', ",{$storyType},") !== false)->andWhere('t2.type')->in($storyType)->fi()
->fetchGroup('project', 'id');
}