Przeglądaj źródła

fixes card numbers for sub tasks

Kai Lehmann 3 lat temu
rodzic
commit
03a5f46131
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      client/components/cards/subtasks.js

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

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