Merge pull request #3977 from syndimann/fix/sub-task-card-numbers

Fix: Incorrect card numbers for sub tasks
This commit is contained in:
Lauri Ojansivu 2021-08-28 01:15:13 +03:00 committed by GitHub
commit c9ef28b2ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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