mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Import single card: archived card
This commit is contained in:
parent
68518f5497
commit
7e64c22c1a
2 changed files with 4 additions and 2 deletions
|
|
@ -65,6 +65,7 @@ Template.listImportCardPopup.events({
|
||||||
boardId: this.boardId,
|
boardId: this.boardId,
|
||||||
userId: Meteor.userId(),
|
userId: Meteor.userId(),
|
||||||
sort: sortIndex,
|
sort: sortIndex,
|
||||||
|
archived: data.closed,
|
||||||
};
|
};
|
||||||
// 3. map labels
|
// 3. map labels
|
||||||
data.labels.forEach((current) => {
|
data.labels.forEach((current) => {
|
||||||
|
|
|
||||||
|
|
@ -194,8 +194,9 @@ Cards.mutations({
|
||||||
Cards.before.insert((userId, doc) => {
|
Cards.before.insert((userId, doc) => {
|
||||||
doc.createdAt = new Date();
|
doc.createdAt = new Date();
|
||||||
doc.dateLastActivity = new Date();
|
doc.dateLastActivity = new Date();
|
||||||
doc.archived = false;
|
if(!doc.hasOwnProperty('archived')){
|
||||||
|
doc.archived = false;
|
||||||
|
}
|
||||||
if (!doc.userId) {
|
if (!doc.userId) {
|
||||||
doc.userId = userId;
|
doc.userId = userId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue