From f76d8e47a859c64a99cfd460e3fd496965bf021a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Manelli?= Date: Wed, 2 May 2018 15:03:22 -0300 Subject: Refactor imported -> linked in components --- client/components/cards/attachments.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/components/cards/attachments.js') diff --git a/client/components/cards/attachments.js b/client/components/cards/attachments.js index 1a4d5bb6..5cac930d 100644 --- a/client/components/cards/attachments.js +++ b/client/components/cards/attachments.js @@ -57,9 +57,9 @@ Template.cardAttachmentsPopup.events({ const card = this; FS.Utility.eachFile(evt, (f) => { const file = new FS.File(f); - if (card.isImportedCard()) { - file.boardId = Cards.findOne(card.importedId).boardId; - file.cardId = card.importedId; + if (card.isLinkedCard()) { + file.boardId = Cards.findOne(card.linkedId).boardId; + file.cardId = card.linkedId; } else { file.boardId = card.boardId; file.cardId = card._id; -- cgit v1.2.3-1-g7c22