* add workflow extra field to bug batchedit page.

This commit is contained in:
wangyuting
2024-03-26 14:32:30 +08:00
parent cf0dce921c
commit 555362002e
4 changed files with 26 additions and 9 deletions
+11 -1
View File
@@ -183,11 +183,21 @@ class bugModel extends model
*/
public function getByIdList(int|array|string $bugIdList = 0, string $fields = '*', string $orderBy = ''): array
{
return $this->dao->select($fields)->from(TABLE_BUG)
$bugs = $this->dao->select($fields)->from(TABLE_BUG)
->where('deleted')->eq('0')
->beginIF($bugIdList)->andWhere('id')->in($bugIdList)->fi()
->beginIF($orderBy)->orderBy($orderBy)->fi()
->fetchAll('id');
if($bugs)
{
foreach($bugs as $bug)
{
$bug = $this->loadModel('file')->replaceImgURL($bug, 'steps');
}
}
return $bugs;
}
/**