mirror of
https://github.com/wekan/wekan.git
synced 2026-03-13 08:56:13 +01:00
Refactor imported -> linked in server and i18n
This commit is contained in:
parent
f76d8e47a8
commit
692a1bc369
3 changed files with 9 additions and 8 deletions
|
|
@ -99,16 +99,16 @@ Meteor.publishRelations('board', function(boardId) {
|
|||
// And in the meantime our code below works pretty well -- it's not even a
|
||||
// hack!
|
||||
this.cursor(Cards.find({ boardId }), function(cardId, card) {
|
||||
if (card.type === 'cardType-importedCard') {
|
||||
const impCardId = card.importedId;
|
||||
if (card.type === 'cardType-linkedCard') {
|
||||
const impCardId = card.linkedId;
|
||||
this.cursor(Cards.find({ _id: impCardId }));
|
||||
this.cursor(CardComments.find({ cardId: impCardId }));
|
||||
this.cursor(Activities.find({ cardId: impCardId }));
|
||||
this.cursor(Attachments.find({ cardId: impCardId }));
|
||||
this.cursor(Checklists.find({ cardId: impCardId }));
|
||||
this.cursor(ChecklistItems.find({ cardId: impCardId }));
|
||||
} else if (card.type === 'cardType-importedBoard') {
|
||||
this.cursor(Boards.find({ _id: card.importedId}));
|
||||
} else if (card.type === 'cardType-linkedBoard') {
|
||||
this.cursor(Boards.find({ _id: card.linkedId}));
|
||||
}
|
||||
this.cursor(Activities.find({ cardId }));
|
||||
this.cursor(CardComments.find({ cardId }));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue