mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +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'){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue