diff options
author | Romulus Urakagi Tsai <urakagi@gmail.com> | 2020-05-20 15:12:55 +0800 |
---|---|---|
committer | Romulus Urakagi Tsai <urakagi@gmail.com> | 2020-05-20 15:12:55 +0800 |
commit | af7c74b2d36681cd16b7e7d1a88c2b3a93b69d3d (patch) | |
tree | c8f1cd693195bbe20237308b0aac95ce43a592ca /client/components/lists/listBody.js | |
parent | 4064f3f4063136c97aa7bcbcdc18fec923934b74 (diff) | |
parent | b80396f627665119cd38f11f2d466ce53ec573ab (diff) | |
download | wekan-af7c74b2d36681cd16b7e7d1a88c2b3a93b69d3d.tar.gz wekan-af7c74b2d36681cd16b7e7d1a88c2b3a93b69d3d.tar.bz2 wekan-af7c74b2d36681cd16b7e7d1a88c2b3a93b69d3d.zip |
Merge branch 'lib-change' of https://github.com/PDIS/wekan into lib-change
Diffstat (limited to 'client/components/lists/listBody.js')
-rw-r--r-- | client/components/lists/listBody.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index 88f88db0..2d913aa9 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -77,7 +77,7 @@ BlazeComponent.extendComponent({ else if ( Utils.boardView() === 'board-view-lists' || Utils.boardView() === 'board-view-cal' || - !Utils.boardView + !Utils.boardView() ) swimlaneId = board.getDefaultSwimline()._id; @@ -658,10 +658,7 @@ BlazeComponent.extendComponent({ _id = element.copy(this.boardId, this.swimlaneId, this.listId); // 1.B Linked card } else { - delete element._id; - element.type = 'cardType-linkedCard'; - element.linkedId = element.linkedId || element._id; - _id = Cards.insert(element); + _id = element.link(this.boardId, this.swimlaneId, this.listId); } Filter.addException(_id); // List insertion @@ -675,7 +672,7 @@ BlazeComponent.extendComponent({ element.sort = Boards.findOne(this.boardId) .swimlanes() .count(); - element.type = 'swimlalne'; + element.type = 'swimlane'; _id = element.copy(this.boardId); } else if (this.isBoardTemplateSearch) { board = Boards.findOne(element.linkedId); |