summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
authorAngelo Gallarello <angelo.gallarell@gmail.com>2018-08-17 14:16:56 +0200
committerAngelo Gallarello <angelo.gallarell@gmail.com>2018-08-17 14:16:56 +0200
commit3b62b5ec5dd34eec323c14d466fe07e34287e7b0 (patch)
tree48f48f035460d12df8ad37234018c69ffa35b47b /models/cards.js
parent2f24dcfc7d2f1b426e83459ed5328529a440955d (diff)
downloadwekan-3b62b5ec5dd34eec323c14d466fe07e34287e7b0.tar.gz
wekan-3b62b5ec5dd34eec323c14d466fe07e34287e7b0.tar.bz2
wekan-3b62b5ec5dd34eec323c14d466fe07e34287e7b0.zip
Fixed triggers to use names and not id
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/cards.js b/models/cards.js
index 364f5a39..c5aceeb7 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -561,6 +561,7 @@ function cardMove(userId, doc, fieldNames, oldListId) {
userId,
oldListId,
activityType: 'moveCard',
+ listName: doc.title,
listId: doc.listId,
boardId: doc.boardId,
cardId: doc._id,
@@ -574,6 +575,7 @@ function cardState(userId, doc, fieldNames) {
Activities.insert({
userId,
activityType: 'archivedCard',
+ listName: doc.title,
boardId: doc.boardId,
listId: doc.listId,
cardId: doc._id,
@@ -583,6 +585,7 @@ function cardState(userId, doc, fieldNames) {
userId,
activityType: 'restoredCard',
boardId: doc.boardId,
+ listName: doc.title,
listId: doc.listId,
cardId: doc._id,
});
@@ -664,6 +667,7 @@ function cardCreation(userId, doc) {
userId,
activityType: 'createCard',
boardId: doc.boardId,
+ listName: doc.title,
listId: doc.listId,
cardId: doc._id,
});