mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Try to fix Attachments.insert is not a function.
Thanks to ChrisMagnuson and xet7 ! Fixes #4432
This commit is contained in:
parent
dd89afff4d
commit
02e977f512
1 changed files with 1 additions and 1 deletions
|
|
@ -585,8 +585,8 @@ Cards.helpers({
|
|||
// Copy attachments
|
||||
oldCard.attachments().forEach(att => {
|
||||
att.cardId = _id;
|
||||
Attachments.insert(att);
|
||||
delete att._id;
|
||||
return Attachments.insert(att);
|
||||
});
|
||||
|
||||
// copy checklists
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue