소스 검색

Try to fix Attachments.insert is not a function.

Thanks to ChrisMagnuson and xet7 !

Fixes #4432
Lauri Ojansivu 3 년 전
부모
커밋
02e977f512
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      models/cards.js

+ 1 - 1
models/cards.js

@@ -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