summaryrefslogtreecommitdiffstats
path: root/models/wekanCreator.js
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-03-11 11:42:22 +0100
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-03-11 11:42:22 +0100
commitebc4d6fdbd56efa5b726f10a6d7c02f0c7864040 (patch)
tree050af9083198a4f21458d38e5bfbeede360834bd /models/wekanCreator.js
parent35ffd0281413aa4071ddef2072ec75c8f2d96025 (diff)
downloadwekan-ebc4d6fdbd56efa5b726f10a6d7c02f0c7864040.tar.gz
wekan-ebc4d6fdbd56efa5b726f10a6d7c02f0c7864040.tar.bz2
wekan-ebc4d6fdbd56efa5b726f10a6d7c02f0c7864040.zip
wekan-import: also import each card color
Diffstat (limited to 'models/wekanCreator.js')
-rw-r--r--models/wekanCreator.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/wekanCreator.js b/models/wekanCreator.js
index 2d3ec5de..7b265911 100644
--- a/models/wekanCreator.js
+++ b/models/wekanCreator.js
@@ -298,6 +298,10 @@ export class WekanCreator {
cardToCreate.members = wekanMembers;
}
}
+ // set color
+ if (card.color) {
+ cardToCreate.color = card.color;
+ }
// insert card
const cardId = Cards.direct.insert(cardToCreate);
// keep track of Wekan id => Wekan id