summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorGhassen Rjab <rjab.ghassen@gmail.com>2017-09-02 13:17:03 +0100
committerGhassen Rjab <rjab.ghassen@gmail.com>2017-09-02 13:17:03 +0100
commitbc4ea6fd9a6e05965ae3977e6453ce1d36ce4078 (patch)
treee17efff54f6304360dfbc3935fdfd995a713969b /models
parent6ff0cf91e2fe6fd0e777225eb7afb3b37ac313e7 (diff)
downloadwekan-bc4ea6fd9a6e05965ae3977e6453ce1d36ce4078.tar.gz
wekan-bc4ea6fd9a6e05965ae3977e6453ce1d36ce4078.tar.bz2
wekan-bc4ea6fd9a6e05965ae3977e6453ce1d36ce4078.zip
Add idMemberCreator to Trello attachment
We need this field to attribute attachment to the user who uploaded it
Diffstat (limited to 'models')
-rw-r--r--models/trelloCreator.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/trelloCreator.js b/models/trelloCreator.js
index b0e3325b..33d777be 100644
--- a/models/trelloCreator.js
+++ b/models/trelloCreator.js
@@ -456,6 +456,8 @@ export class TrelloCreator {
// In that case Trello still reports its addition, but removes its 'url' field.
// So we test for that
const trelloAttachment = action.data.attachment;
+ // We need the idMemberCreator
+ trelloAttachment.idMemberCreator = action.idMemberCreator;
if(trelloAttachment.url) {
// we cannot actually create the Wekan attachment, because we don't yet
// have the cards to attach it to, so we store it in the instance variable.