* Finish task #4616.

This commit is contained in:
chenfeiCF
2018-07-02 13:23:57 +08:00
parent c1e7de7815
commit 58704d5c48
+1 -1
View File
@@ -1422,7 +1422,7 @@ class taskModel extends model
->beginIF($type == 'delayed')->andWhere('t1.deadline')->gt('1970-1-1')->andWhere('t1.deadline')->lt(date(DT_DATE1))->andWhere('t1.status')->in('wait,doing')->fi()
->beginIF(is_array($type) or strpos(',all,undone,needconfirm,assignedtome,delayed,finishedbyme,myinvolved,', ",$type,") === false)->andWhere('t1.status')->in($type)->fi()
->beginIF($modules)->andWhere('t1.module')->in($modules)->fi()
->orderBy('t1.`id`,' . $orderBy)
->orderBy("t1.$orderBy")
->fetchAll('id');
if(!empty($children))