mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
insert linked board set's now the next card number too
This commit is contained in:
parent
dcb9fb7465
commit
20b0422024
1 changed files with 2 additions and 0 deletions
|
@ -574,6 +574,7 @@ BlazeComponent.extendComponent({
|
|||
Popup.back();
|
||||
return;
|
||||
}
|
||||
const nextCardNumber = this.board.getNextCardNumber();
|
||||
const sortIndex = this.getSortIndex();
|
||||
const _id = Cards.insert({
|
||||
title: $('.js-select-boards option:selected').text(), //dummy
|
||||
|
@ -583,6 +584,7 @@ BlazeComponent.extendComponent({
|
|||
sort: sortIndex,
|
||||
type: 'cardType-linkedBoard',
|
||||
linkedId: impBoardId,
|
||||
cardNumber: nextCardNumber,
|
||||
});
|
||||
Filter.addException(_id);
|
||||
Popup.back();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue