mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Merge pull request #2253 from justinr1234/devel
Fix watchers undefined #2252
This commit is contained in:
commit
1158cd42cc
1 changed files with 15 additions and 9 deletions
|
|
@ -113,9 +113,11 @@ if (Meteor.isServer) {
|
||||||
}
|
}
|
||||||
if (activity.oldBoardId) {
|
if (activity.oldBoardId) {
|
||||||
const oldBoard = activity.oldBoard();
|
const oldBoard = activity.oldBoard();
|
||||||
watchers = _.union(watchers, oldBoard.watchers || []);
|
if (oldBoard) {
|
||||||
params.oldBoard = oldBoard.title;
|
watchers = _.union(watchers, oldBoard.watchers || []);
|
||||||
params.oldBoardId = activity.oldBoardId;
|
params.oldBoard = oldBoard.title;
|
||||||
|
params.oldBoardId = activity.oldBoardId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (activity.memberId) {
|
if (activity.memberId) {
|
||||||
participants = _.union(participants, [activity.memberId]);
|
participants = _.union(participants, [activity.memberId]);
|
||||||
|
|
@ -129,15 +131,19 @@ if (Meteor.isServer) {
|
||||||
}
|
}
|
||||||
if (activity.oldListId) {
|
if (activity.oldListId) {
|
||||||
const oldList = activity.oldList();
|
const oldList = activity.oldList();
|
||||||
watchers = _.union(watchers, oldList.watchers || []);
|
if (oldList) {
|
||||||
params.oldList = oldList.title;
|
watchers = _.union(watchers, oldList.watchers || []);
|
||||||
params.oldListId = activity.oldListId;
|
params.oldList = oldList.title;
|
||||||
|
params.oldListId = activity.oldListId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (activity.oldSwimlaneId) {
|
if (activity.oldSwimlaneId) {
|
||||||
const oldSwimlane = activity.oldSwimlane();
|
const oldSwimlane = activity.oldSwimlane();
|
||||||
watchers = _.union(watchers, oldSwimlane.watchers || []);
|
if (oldSwimlane) {
|
||||||
params.oldSwimlane = oldSwimlane.title;
|
watchers = _.union(watchers, oldSwimlane.watchers || []);
|
||||||
params.oldSwimlaneId = activity.oldSwimlaneId;
|
params.oldSwimlane = oldSwimlane.title;
|
||||||
|
params.oldSwimlaneId = activity.oldSwimlaneId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (activity.cardId) {
|
if (activity.cardId) {
|
||||||
const card = activity.card();
|
const card = activity.card();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue