Fix dissapearing subtasks

This commit is contained in:
Andrés Manelli 2019-03-17 16:23:59 +01:00
parent ff19d6744e
commit a6e3c8984d
2 changed files with 3 additions and 4 deletions

View file

@ -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;
},

View file

@ -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