From bb426aaabe060164d00f8b5cace0127bc575abc7 Mon Sep 17 00:00:00 2001 From: liyuchun Date: Wed, 10 Nov 2021 09:19:25 +0800 Subject: [PATCH] * Fix bug #16054. --- module/kanban/model.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/module/kanban/model.php b/module/kanban/model.php index 919e542c62..00238842d9 100644 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -792,6 +792,17 @@ class kanbanModel extends model ->andWhere('t2.deleted')->eq(0) ->orderBy($groupBy . '_desc') ->fetchPairs(); + + if($type == 'task') + { + $unlindedTask = $this->dao->select('id')->from(TABLE_TASK) + ->where('execution')->eq($executionID) + ->andWhere('parent')->ge(0) + ->andWhere('story')->eq(0) + ->andWhere('deleted')->eq(0) + ->fetch('id'); + if($unlindedTask) $groupList[0] = 0; + } } else {