mirror of
https://github.com/wekan/wekan.git
synced 2026-03-13 08:56:13 +01:00
Fixed triggers to use names and not id
This commit is contained in:
parent
2f24dcfc7d
commit
3b62b5ec5d
7 changed files with 157 additions and 54 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue