mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Assign user to attachment before inserting
This commit is contained in:
parent
ad09630d4e
commit
4ad4c6ea22
3 changed files with 5 additions and 1 deletions
|
|
@ -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(() => {});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue