mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
fixes card numbers for sub tasks
This commit is contained in:
parent
abadeb5e14
commit
03a5f46131
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue