summaryrefslogtreecommitdiffstats
path: root/models/trelloCreator.js
diff options
context:
space:
mode:
authorGhassen Rjab <rjab.ghassen@gmail.com>2017-09-02 07:17:42 +0100
committerGhassen Rjab <rjab.ghassen@gmail.com>2017-09-02 07:17:42 +0100
commit6ff0cf91e2fe6fd0e777225eb7afb3b37ac313e7 (patch)
treeaadf4114a96c7954a9e78060e1708e07787e56c6 /models/trelloCreator.js
parent4ad4c6ea2274919ced917e541120ad50c7512b80 (diff)
downloadwekan-6ff0cf91e2fe6fd0e777225eb7afb3b37ac313e7.tar.gz
wekan-6ff0cf91e2fe6fd0e777225eb7afb3b37ac313e7.tar.bz2
wekan-6ff0cf91e2fe6fd0e777225eb7afb3b37ac313e7.zip
Add source field to imported attachments
We use this field to prevent adding attachments' related activities automatically only. Then this field will be removed.
Diffstat (limited to 'models/trelloCreator.js')
-rw-r--r--models/trelloCreator.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/trelloCreator.js b/models/trelloCreator.js
index 44030ea5..b0e3325b 100644
--- a/models/trelloCreator.js
+++ b/models/trelloCreator.js
@@ -323,6 +323,9 @@ export class TrelloCreator {
file.boardId = boardId;
file.cardId = cardId;
file.userId = this._user(att.idMemberCreator);
+ // The field source will only be used to prevent adding
+ // attachments' related activities automatically
+ file.source = 'import';
if (error) {
throw(error);
} else {