From ebef99ccf687fc0c43c27498f50aad022ba637f7 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Thu, 10 Feb 2022 14:52:21 +0800 Subject: [PATCH] * Fix bug. --- module/kanban/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/kanban/model.php b/module/kanban/model.php index 307d5740c7..65de5fea37 100644 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -110,6 +110,8 @@ class kanbanModel extends model $copyColumnGroup = $this->getColumnGroupByRegions($copyRegionID, 'id_asc'); /* Create groups, lanes, and columns. */ + if(empty($copyGroups)) return $regionID; + foreach($copyGroups[$copyRegionID] as $copyGroupID => $copyGroup) { $newGroupID = $this->createGroup($kanban->id, $regionID);