mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Fixed Unable to remove old Board, reappears.
Thanks to chirrut2, uusijani, cimm, anicolaides, Philipoo0 and xet7. Fixes #2613
This commit is contained in:
parent
ccd69dfcf7
commit
332f830cc2
1 changed files with 29 additions and 7 deletions
|
|
@ -117,9 +117,17 @@ if (Meteor.isServer) {
|
||||||
// No need send notification to user of activity
|
// No need send notification to user of activity
|
||||||
// participants = _.union(participants, [activity.userId]);
|
// participants = _.union(participants, [activity.userId]);
|
||||||
const user = activity.user();
|
const user = activity.user();
|
||||||
params.user = user.getName();
|
if (user) {
|
||||||
params.userEmails = user.emails;
|
if (user.getName()) {
|
||||||
params.userId = activity.userId;
|
params.user = user.getName();
|
||||||
|
}
|
||||||
|
if (user.emails) {
|
||||||
|
params.userEmails = user.emails;
|
||||||
|
}
|
||||||
|
if (activity.userId) {
|
||||||
|
params.userId = activity.userId;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (activity.boardId) {
|
if (activity.boardId) {
|
||||||
if (board.title.length > 0) {
|
if (board.title.length > 0) {
|
||||||
|
|
@ -222,16 +230,30 @@ if (Meteor.isServer) {
|
||||||
}
|
}
|
||||||
if (activity.checklistId) {
|
if (activity.checklistId) {
|
||||||
const checklist = activity.checklist();
|
const checklist = activity.checklist();
|
||||||
params.checklist = checklist.title;
|
if (checklist) {
|
||||||
|
if (checklist.title) {
|
||||||
|
params.checklist = checklist.title;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (activity.checklistItemId) {
|
if (activity.checklistItemId) {
|
||||||
const checklistItem = activity.checklistItem();
|
const checklistItem = activity.checklistItem();
|
||||||
params.checklistItem = checklistItem.title;
|
if (checklistItem) {
|
||||||
|
if (checklistItem.title) {
|
||||||
|
params.checklistItem = checklistItem.title;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (activity.customFieldId) {
|
if (activity.customFieldId) {
|
||||||
const customField = activity.customField();
|
const customField = activity.customField();
|
||||||
params.customField = customField.name;
|
if (customField) {
|
||||||
params.customFieldValue = activity.value;
|
if (customField.name) {
|
||||||
|
params.customField = customField.name;
|
||||||
|
}
|
||||||
|
if (actitivy.value) {
|
||||||
|
params.customFieldValue = activity.value;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Label activity did not work yet, unable to edit labels when tried this.
|
// Label activity did not work yet, unable to edit labels when tried this.
|
||||||
//if (activity.labelId) {
|
//if (activity.labelId) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue