diff --git a/module/kanban/model.php b/module/kanban/model.php index cbe2090b79..4a8148c9ff 100644 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -3051,7 +3051,15 @@ class kanbanModel extends model foreach($parentCells as $cell) { - $this->dao->update(TABLE_KANBANCELL)->set('cards')->eq($cell->cards) + $cards = $this->dao->select('cards')->from(TABLE_KANBANCELL) + ->where('lane')->eq($cell->lane) + ->andWhere('`column`')->eq($columnID) + ->andWhere('type')->eq('common') + ->fetch('cards'); + + $cards = $cards ? $cards . ltrim($cell->cards, ',') : $cards; + + $this->dao->update(TABLE_KANBANCELL)->set('cards')->eq($cards) ->where('lane')->eq($cell->lane) ->andWhere('`column`')->eq($columnID) ->andWhere('type')->eq('common')