From 5d10caf48f5e6c4b6b01f0d98a2d818fe38ca5fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B9=BF=E6=98=8E?= Date: Wed, 26 Jan 2022 11:02:13 +0800 Subject: [PATCH] * Fix bug. --- module/kanban/model.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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')