diff --git a/module/kanban/control.php b/module/kanban/control.php index 653f208362..f435f47312 100644 --- a/module/kanban/control.php +++ b/module/kanban/control.php @@ -1317,6 +1317,7 @@ class kanban extends control if($confirm == 'no') { $card = $this->kanban->getCardByID($cardID); + a($card); $column = $this->dao->select('*')->from(TABLE_KANBANCOLUMN)->where('id')->eq($card->column)->fetch(); if($column->archived or $column->deleted) die(js::alert(sprintf($this->lang->kanbancard->confirmRestoreTip, $column->name))); diff --git a/module/kanban/model.php b/module/kanban/model.php index c2b0349425..a528d539eb 100644 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -438,6 +438,7 @@ class kanbanModel extends model ->add('kanban', $kanbanID) ->add('region', $regionID) ->add('group', $groupID) + ->add('column', $columnID) ->add('createdBy', $this->app->user->account) ->add('createdDate', $now) ->add('assignedDate', $now) @@ -2036,7 +2037,7 @@ class kanbanModel extends model $lane->type = $type; $lane->execution = $executionID; $this->dao->insert(TABLE_KANBANLANE)->data($lane)->exec(); - + $laneID = $this->dao->lastInsertId(); $this->createExecutionColumns($laneID, $type, $executionID); }