瀏覽代碼

fixes card numbers for sub tasks

Kai Lehmann 3 年之前
父節點
當前提交
03a5f46131
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      client/components/cards/subtasks.js

+ 3 - 0
client/components/cards/subtasks.js

@@ -37,6 +37,8 @@ BlazeComponent.extendComponent({
         ? targetBoard.getDefaultSwimline()._id
         ? targetBoard.getDefaultSwimline()._id
         : targetSwimlane._id;
         : targetSwimlane._id;
 
 
+    const nextCardNumber = targetBoard.getNextCardNumber();
+
     if (title) {
     if (title) {
       const _id = Cards.insert({
       const _id = Cards.insert({
         title,
         title,
@@ -49,6 +51,7 @@ BlazeComponent.extendComponent({
         sort: sortIndex,
         sort: sortIndex,
         swimlaneId,
         swimlaneId,
         type: 'cardType-card',
         type: 'cardType-card',
+        cardNumber: nextCardNumber
       });
       });
 
 
       // In case the filter is active we need to add the newly inserted card in
       // In case the filter is active we need to add the newly inserted card in