* finish task #8265.

This commit is contained in:
z
2020-11-12 09:25:13 +08:00
parent e330353df3
commit 154ace870a
3 changed files with 14 additions and 4 deletions
+2 -2
View File
@@ -209,11 +209,11 @@ class actionModel extends model
$actions = $this->dao->select('*')->from(TABLE_ACTION)
->beginIF($objectType == 'project')
->where("objectType IN('project', 'testtask', 'build')")
->andWhere('project')->eq($objectID)
->andWhere('project')->eq((int)$objectID)
->fi()
->beginIF($objectType != 'project')
->where('objectType')->eq($objectType)
->andWhere('objectID')->eq($objectID)
->andWhere('objectID')->eq((int)$objectID)
->fi()
->orderBy('date, id')->fetchAll('id');
$histories = $this->getHistory(array_keys($actions));