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