diff --git a/module/kanban/model.php b/module/kanban/model.php index 18d3980f1c..e0d4a4f57c 100755 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -525,7 +525,7 @@ class kanbanModel extends model $cardID = $this->dao->lastInsertID(); $this->file->saveUpload('kanbancard', $cardID); $this->file->updateObjectID($this->post->uid, $cardID, 'kanbancard'); - $this->addKanbanCell((int)$card->kanban, (int)$this->post->lane, $columnID, 'common', $cardID); + $this->addKanbanCell((int)$card->kanban, (int)$this->post->lane, $columnID, 'common', (string)$cardID); return $cardID; } diff --git a/module/kanban/test/kanban.class.php b/module/kanban/test/kanban.class.php index 96e569d94b..8c3b3c66f2 100644 --- a/module/kanban/test/kanban.class.php +++ b/module/kanban/test/kanban.class.php @@ -184,7 +184,8 @@ class kanbanTest */ public function createCardTest($columnID, $card) { - $_POST['lane'] = 1; + $_POST['lane'] = 1; + $_POST['uid'] = 'test'; $objectID = $this->objectModel->createCard($columnID, $card);