* [task#130242,done,1h] add involoved data for task list.

This commit is contained in:
tianshujie
2024-10-23 09:18:10 +08:00
committed by 刘刚
parent 1362189646
commit 4b1970326f
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -2106,7 +2106,7 @@ class taskModel extends model
*/
public function getUserTasks(string $account, string $type = 'assignedTo', int $limit = 0, object $pager = null, string $orderBy = 'id_desc', int $projectID = 0): array
{
if(!$this->loadModel('common')->checkField(TABLE_TASK, $type)) return array();
if($type != 'myInvolved' && !$this->loadModel('common')->checkField(TABLE_TASK, $type)) return array();
$tasks = $this->taskTao->fetchUserTasksByType($account, $type, $orderBy, $projectID, $limit, $pager);