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);