summaryrefslogtreecommitdiffstats
path: root/client/components/lists/listBody.js
diff options
context:
space:
mode:
authorNicu Tofan <nicu.tofan@gmail.com>2018-06-28 17:00:35 +0300
committerNicu Tofan <nicu.tofan@gmail.com>2018-06-28 17:00:35 +0300
commit3eba6ef2856946925795f9cd370583be892344dd (patch)
tree11d3bb19678153f955647fbf4b3f6d2299933d7d /client/components/lists/listBody.js
parentb7d508e8c4cf858559e144053d119ceaebfa9697 (diff)
parentad54a8a48404a84b0bf5ff7dab5348be6dda574e (diff)
downloadwekan-3eba6ef2856946925795f9cd370583be892344dd.tar.gz
wekan-3eba6ef2856946925795f9cd370583be892344dd.tar.bz2
wekan-3eba6ef2856946925795f9cd370583be892344dd.zip
Merge branch 'devel' into nested-tasks
Diffstat (limited to 'client/components/lists/listBody.js')
-rw-r--r--client/components/lists/listBody.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js
index 34aeb8a8..0a10f7d5 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -36,17 +36,14 @@ BlazeComponent.extendComponent({
const members = formComponent.members.get();
const labelIds = formComponent.labels.get();
const customFields = formComponent.customFields.get();
- //console.log('members', members);
- //console.log('labelIds', labelIds);
- //console.log('customFields', customFields);
- const boardId = this.data().board()._id;
+ const boardId = this.data().board();
let swimlaneId = '';
const boardView = Meteor.user().profile.boardView;
if (boardView === 'board-view-swimlanes')
swimlaneId = this.parentComponent().parentComponent().data()._id;
- else if (boardView === 'board-view-lists')
- swimlaneId = this.data().board().getDefaultSwimline()._id;
+ else if ((boardView === 'board-view-lists') || (boardView === 'board-view-cal'))
+ swimlaneId = boardId.getDefaultSwimline()._id;
if (title) {
const _id = Cards.insert({
@@ -55,7 +52,7 @@ BlazeComponent.extendComponent({
labelIds,
customFields,
listId: this.data()._id,
- boardId: this.data().board()._id,
+ boardId: boardId._id,
sort: sortIndex,
swimlaneId,
});