mirror of
https://github.com/wekan/wekan.git
synced 2026-02-22 16:04:08 +01:00
Fixes
This commit is contained in:
parent
d22964bcfd
commit
477d71e0b9
13 changed files with 207 additions and 24 deletions
|
|
@ -139,13 +139,15 @@ RulesHelper = {
|
|||
Swimlanes.insert({
|
||||
title: action.swimlaneName,
|
||||
boardId,
|
||||
sort: 0
|
||||
});
|
||||
}
|
||||
if(action.actionType === 'addChecklistWithItems'){
|
||||
const checkListId = Checklists.insert({'title':action.checklistName, 'cardId':card._id, 'sort':0});
|
||||
const itemsArray = action.checklistItems.split(',');
|
||||
const checkList = Checklists.findOne({_id:checkListId});
|
||||
for(let i = 0; i <itemsArray.length; i++){
|
||||
ChecklistItems.insert({title:itemsArray[i], checklistId:checkListId, cardId:card._id, 'sort':0});
|
||||
ChecklistItems.insert({title:itemsArray[i], checklistId:checkListId, cardId:card._id, 'sort':checkList.itemCount()});
|
||||
}
|
||||
}
|
||||
if(action.actionType === 'createCard'){
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@ TriggersDef = {
|
|||
matchingFields: ['boardId', 'listName', 'userId', 'swimlaneName', 'cardTitle'],
|
||||
},
|
||||
moveCard:{
|
||||
matchingFields: ['boardId', 'listName', 'oldListName', 'userId', 'swimlaneName'],
|
||||
matchingFields: ['boardId', 'listName', 'oldListName', 'userId', 'swimlaneName', 'cardTitle'],
|
||||
},
|
||||
archivedCard:{
|
||||
matchingFields: ['boardId', 'userId'],
|
||||
matchingFields: ['boardId', 'userId', 'cardTitle'],
|
||||
},
|
||||
restoredCard:{
|
||||
matchingFields: ['boardId', 'userId'],
|
||||
matchingFields: ['boardId', 'userId', 'cardTitle'],
|
||||
},
|
||||
joinMember:{
|
||||
matchingFields: ['boardId', 'username', 'userId'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue