diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-02-28 00:54:29 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-02-28 00:54:29 +0200 |
commit | eeb8d4b3de39658f1ed9927cc85a968a9b9fe8c4 (patch) | |
tree | f46123f64a068ee1d6ed6c2f05ac990abdc7a1a5 /models/swimlanes.js | |
parent | 82a728df7111413e4a1b106f4cd18265da5f397b (diff) | |
parent | ad75c541cff2c27c441a0fb67d52c57180020594 (diff) | |
download | wekan-eeb8d4b3de39658f1ed9927cc85a968a9b9fe8c4.tar.gz wekan-eeb8d4b3de39658f1ed9927cc85a968a9b9fe8c4.tar.bz2 wekan-eeb8d4b3de39658f1ed9927cc85a968a9b9fe8c4.zip |
Merge branch 'edge' into meteor-1.8
Diffstat (limited to 'models/swimlanes.js')
-rw-r--r-- | models/swimlanes.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/models/swimlanes.js b/models/swimlanes.js index a3427fc6..1b18ba5d 100644 --- a/models/swimlanes.js +++ b/models/swimlanes.js @@ -101,8 +101,10 @@ Swimlanes.allow({ }); Swimlanes.helpers({ - copy(oldBoardId) { + copy(boardId) { const oldId = this._id; + const oldBoardId = this.boardId; + this.boardId = boardId; delete this._id; const _id = Swimlanes.insert(this); @@ -118,8 +120,8 @@ Swimlanes.helpers({ Lists.find(query).forEach((list) => { list.type = 'list'; list.swimlaneId = oldId; - list.boardId = this.boardId; - list.copy(_id); + list.boardId = boardId; + list.copy(boardId, _id); }); }, |