From 83c5016143aa27a90ac1c2ce436ec6a1bb64ca4b Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 3 Mar 2025 09:00:09 +0800 Subject: [PATCH] * [bug#60161,done,0.2h] fix tab show error. --- module/kanban/ui/ajaxgetdropmenu.html.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/module/kanban/ui/ajaxgetdropmenu.html.php b/module/kanban/ui/ajaxgetdropmenu.html.php index 510c84dff0..33b457e0c8 100644 --- a/module/kanban/ui/ajaxgetdropmenu.html.php +++ b/module/kanban/ui/ajaxgetdropmenu.html.php @@ -41,16 +41,14 @@ foreach($spaceList as $spaceID => $space) } } - /** * 定义每个分组名称信息,包括可展开的已关闭分组。 * Define every group name, include expanded group. */ $tabs = array(); -$tabs[] = array('name' => 'my', 'text' => $lang->kanban->my, 'active' => zget($kanbanGroup, $kanbanID, '') === 'my'); -$tabs[] = array('name' => 'other', 'text' => $lang->kanban->other, 'active' => zget($kanbanGroup, $kanbanID, '') === 'other'); -$tabs[] = array('name' => 'closed', 'text' => $lang->kanban->closed); - +if(!empty($data['my'])) $tabs[] = array('name' => 'my', 'text' => $lang->kanban->my, 'active' => zget($kanbanGroup, $kanbanID, '') === 'my'); +if(!empty($data['other'])) $tabs[] = array('name' => 'other', 'text' => $lang->kanban->other, 'active' => zget($kanbanGroup, $kanbanID, '') === 'other'); +if(!empty($data['closed'])) $tabs[] = array('name' => 'closed', 'text' => $lang->kanban->closed); /* 将分组数据转换为索引数组。Format grouped data to indexed array. */ foreach ($data as $key => $value) $data[$key] = array_values($value);