mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 20:58:48 +01:00
Merge pull request #3584 from n8ores/customFieldsFix
Fix bugs with customFields identified in Issue #3574
This commit is contained in:
commit
042594ffca
4 changed files with 6 additions and 4 deletions
|
|
@ -309,7 +309,7 @@ services:
|
|||
#- TRUSTED_URL=https://intra.example.com
|
||||
#-----------------------------------------------------------------
|
||||
# ==== OUTGOING WEBHOOKS ====
|
||||
# What to send to Outgoing Webhook, or leave out. Example, that includes all that are default: cardId,listId,oldListId,boardId,comment,user,card,commentId .
|
||||
# What to send to Outgoing Webhook, or leave out. If commented out the default values will be: cardId,listId,oldListId,boardId,comment,user,card,commentId,swimlaneId,customerField,customFieldValue
|
||||
#- WEBHOOKS_ATTRIBUTES=cardId,listId,oldListId,boardId,comment,user,card,commentId
|
||||
#-----------------------------------------------------------------
|
||||
# ==== Debug OIDC OAuth2 etc ====
|
||||
|
|
|
|||
|
|
@ -231,9 +231,7 @@ if (Meteor.isServer) {
|
|||
if (activity.customFieldId) {
|
||||
const customField = activity.customField();
|
||||
params.customField = customField.name;
|
||||
params.customFieldValue = Activities.findOne({
|
||||
customFieldId: customField._id,
|
||||
}).value;
|
||||
params.customFieldValue = activity.value;
|
||||
}
|
||||
// Label activity did not work yet, unable to edit labels when tried this.
|
||||
//if (activity.labelId) {
|
||||
|
|
|
|||
|
|
@ -2112,6 +2112,8 @@ function cardCustomFields(userId, doc, fieldNames, modifier) {
|
|||
activityType: 'setCustomField',
|
||||
boardId: doc.boardId,
|
||||
cardId: doc._id,
|
||||
listId: doc.listId,
|
||||
swimlaneId: doc.swimlaneId
|
||||
};
|
||||
Activities.insert(act);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,6 +61,8 @@ if (Meteor.isServer) {
|
|||
'card',
|
||||
'commentId',
|
||||
'swimlaneId',
|
||||
'customField',
|
||||
'customFieldValue'
|
||||
];
|
||||
const responseFunc = data => {
|
||||
const paramCommentId = data.commentId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue