summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-03-21 00:12:06 +0200
committerLauri Ojansivu <x@xet7.org>2019-03-21 00:12:06 +0200
commit72cb820f1f70b2d38c11bce0ef2ed445c6f3285a (patch)
tree021a701fcbff6e24df4421d3f431912bb13af56a
parent9f95a1059191be699e2581807704bd987f3843f9 (diff)
parentd5d33247fb642794be39098789b3b14e207ce832 (diff)
downloadwekan-72cb820f1f70b2d38c11bce0ef2ed445c6f3285a.tar.gz
wekan-72cb820f1f70b2d38c11bce0ef2ed445c6f3285a.tar.bz2
wekan-72cb820f1f70b2d38c11bce0ef2ed445c6f3285a.zip
Merge branch 'andresmanelli-fix_subtasks' into edge
-rw-r--r--models/boards.js4
-rw-r--r--server/publications/boards.js3
2 files changed, 3 insertions, 4 deletions
diff --git a/models/boards.js b/models/boards.js
index 99ac8e6e..36651d54 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -605,9 +605,7 @@ Boards.helpers({
title: TAPi18n.__('queue'),
boardId: this._id,
});
- Boards.update(this._id, {$set: {
- subtasksDefaultListId: this.subtasksDefaultListId,
- }});
+ this.setSubtasksDefaultListId(this.subtasksDefaultListId);
}
return this.subtasksDefaultListId;
},
diff --git a/server/publications/boards.js b/server/publications/boards.js
index 6d9d2b9e..144eabb8 100644
--- a/server/publications/boards.js
+++ b/server/publications/boards.js
@@ -116,7 +116,7 @@ Meteor.publishRelations('board', function(boardId) {
const boards = this.join(Boards);
const subCards = this.join(Cards);
- this.cursor(Cards.find({ boardId }), function(cardId, card) {
+ this.cursor(Cards.find({ boardId: {$in: [boardId, board.subtasksDefaultBoardId]}}), function(cardId, card) {
if (card.type === 'cardType-linkedCard') {
const impCardId = card.linkedId;
subCards.push(impCardId);
@@ -141,6 +141,7 @@ Meteor.publishRelations('board', function(boardId) {
checklists.send();
checklistItems.send();
boards.send();
+ parentCards.send();
if (board.members) {
// Board members. This publication also includes former board members that