diff --git a/module/kanban/control.php b/module/kanban/control.php index d1b9c3dab6..61c63c1630 100644 --- a/module/kanban/control.php +++ b/module/kanban/control.php @@ -1781,7 +1781,7 @@ class kanban extends control $fromCards = str_replace(",$cardID,", ',', $fromCell->cards); $fromCards = $fromCards == ',' ? '' : $fromCards; - $toCards = ",$cardID," . ltrim($toCell->cards, ','); + $toCards = ',' . implode(',', array_unique(array_filter(explode(',', $toCell->cards)))) . ",$cardID,"; $this->dao->update(TABLE_KANBANCELL)->set('cards')->eq($fromCards) ->where('kanban')->eq($executionID)