mirror of
https://github.com/wekan/wekan.git
synced 2025-12-28 05:08:48 +01:00
Merge pull request #3977 from syndimann/fix/sub-task-card-numbers
Fix: Incorrect card numbers for sub tasks
This commit is contained in:
commit
c9ef28b2ad
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