summaryrefslogtreecommitdiffstats
path: root/client/components/cards/attachments.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/cards/attachments.js')
-rw-r--r--client/components/cards/attachments.js6
1 files changed, 3 insertions, 3 deletions
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;