summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-09-02 16:05:14 +0300
committerLauri Ojansivu <x@xet7.org>2017-09-02 16:05:14 +0300
commit17cf8ded07e77726d6a6d037b446da50ef734095 (patch)
tree38a5fd5d88633a2cdaab35339f5c39156d2de3f8 /client
parentd4537af3b4a3072196309ddaa0679dc935f3c46c (diff)
parent181af6f2508405c0459197445f3b02f8368cb490 (diff)
downloadwekan-17cf8ded07e77726d6a6d037b446da50ef734095.tar.gz
wekan-17cf8ded07e77726d6a6d037b446da50ef734095.tar.bz2
wekan-17cf8ded07e77726d6a6d037b446da50ef734095.zip
Merge branch 'feature/manual-attachments-activities' of https://github.com/GhassenRjab/wekan into GhassenRjab-feature/manual-attachments-activities
Diffstat (limited to 'client')
-rw-r--r--client/components/cards/attachments.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/components/cards/attachments.js b/client/components/cards/attachments.js
index 4e3e0b19..95cb9f55 100644
--- a/client/components/cards/attachments.js
+++ b/client/components/cards/attachments.js
@@ -62,7 +62,7 @@ Template.cardAttachmentsPopup.events({
const file = new FS.File(f);
file.boardId = card.boardId;
file.cardId = card._id;
-
+ file.userId = Meteor.userId();
Attachments.insert(file);
Popup.close();
});
@@ -109,6 +109,7 @@ Template.previewClipboardImagePopup.events({
file.updatedAt(new Date());
file.boardId = card.boardId;
file.cardId = card._id;
+ file.userId = Meteor.userId();
Attachments.insert(file);
pastedResults = null;
$(document.body).pasteImageReader(() => {});