diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2019-03-16 22:43:47 +0100 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2019-03-16 22:49:45 +0100 |
commit | d01fccd9497120613bf2c0b986963e67e7f3d6fa (patch) | |
tree | 0ad6cc465e427397b7125bb8f3ff0f0719d28c0b /models/boards.js | |
parent | 4cd0d1c3971f001eccf023bb84f1bee113fed215 (diff) | |
download | wekan-d01fccd9497120613bf2c0b986963e67e7f3d6fa.tar.gz wekan-d01fccd9497120613bf2c0b986963e67e7f3d6fa.tar.bz2 wekan-d01fccd9497120613bf2c0b986963e67e7f3d6fa.zip |
- Fix card copy & move between boards with customFields
- Fix card copy & move between boards with labels with same name
- Fix activities for labels when copying and moving card
- Fix activities for customFields when copying and moving card
Diffstat (limited to 'models/boards.js')
-rw-r--r-- | models/boards.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/boards.js b/models/boards.js index 9a71ede8..99ac8e6e 100644 --- a/models/boards.js +++ b/models/boards.js @@ -466,7 +466,7 @@ Boards.helpers({ }, customFields() { - return CustomFields.find({ boardId: this._id }, { sort: { name: 1 } }); + return CustomFields.find({ boardIds: {$in: [this._id]} }, { sort: { name: 1 } }); }, // XXX currently mutations return no value so we have an issue when using addLabel in import |