Procházet zdrojové kódy

Merge branch 'GhassenRjab-fix-trello-import' into devel

Fix importing Trello board: Attribute correct members to their comments.
Thanks to GhassenRjab ! Closes #903
Lauri Ojansivu před 8 roky
rodič
revize
ba0b91f141
2 změnil soubory, kde provedl 11 přidání a 2 odebrání
  1. 9 0
      CHANGELOG.md
  2. 2 2
      models/import.js

+ 9 - 0
CHANGELOG.md

@@ -1,3 +1,12 @@
+# Upcoming Wekan release
+
+This release fixes the following bugs:
+
+* [Fix importing Trello board: Attribute correct members to their
+   comments](https://github.com/wekan/wekan/pull/1080).
+
+Thanks to GitHub user GhassenRjab for contributions.
+
 # v0.24 2017-06-21 Wekan release
 
 This release adds the following new features:

+ 2 - 2
models/import.js

@@ -285,7 +285,7 @@ class TrelloCreator {
             createdAt: this._now(comment.date),
             text: comment.data.text,
             // we attribute the comment to the original author, default to current user
-            userId: this._user(comment.memberCreator.id),
+            userId: this._user(comment.idMemberCreator),
           };
           // dateLastActivity will be set from activity insert, no need to
           // update it ourselves
@@ -298,7 +298,7 @@ class TrelloCreator {
             createdAt: this._now(commentToCreate.createdAt),
             // we attribute the addComment (not the import)
             // to the original author - it is needed by some UI elements.
-            userId: this._user(commentToCreate.userId),
+            userId: commentToCreate.userId,
           });
         });
       }