mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
parent
5744aac7bf
commit
e7a11c5733
2 changed files with 4 additions and 2 deletions
|
|
@ -239,7 +239,7 @@ BlazeComponent.extendComponent({
|
||||||
},
|
},
|
||||||
(err, res) => {
|
(err, res) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
this.setError(err.error);
|
self.setError(err.error);
|
||||||
} else {
|
} else {
|
||||||
Session.set('fromBoard', null);
|
Session.set('fromBoard', null);
|
||||||
subManager.subscribe('board', res, false);
|
subManager.subscribe('board', res, false);
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@ import {
|
||||||
TYPE_LINKED_BOARD,
|
TYPE_LINKED_BOARD,
|
||||||
TYPE_LINKED_CARD,
|
TYPE_LINKED_CARD,
|
||||||
} from '../config/const';
|
} from '../config/const';
|
||||||
|
import Attachments from "./attachments";
|
||||||
|
|
||||||
|
|
||||||
Cards = new Mongo.Collection('cards');
|
Cards = new Mongo.Collection('cards');
|
||||||
|
|
||||||
|
|
@ -585,8 +587,8 @@ Cards.helpers({
|
||||||
// Copy attachments
|
// Copy attachments
|
||||||
oldCard.attachments().forEach(att => {
|
oldCard.attachments().forEach(att => {
|
||||||
att.cardId = _id;
|
att.cardId = _id;
|
||||||
Attachments.insert(att);
|
|
||||||
delete att._id;
|
delete att._id;
|
||||||
|
return Attachments.insert(att);
|
||||||
});
|
});
|
||||||
|
|
||||||
// copy checklists
|
// copy checklists
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue