mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01: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();
|
Popup.back();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const nextCardNumber = this.board.getNextCardNumber();
|
||||||
const sortIndex = this.getSortIndex();
|
const sortIndex = this.getSortIndex();
|
||||||
const _id = Cards.insert({
|
const _id = Cards.insert({
|
||||||
title: $('.js-select-boards option:selected').text(), //dummy
|
title: $('.js-select-boards option:selected').text(), //dummy
|
||||||
|
|
@ -583,6 +584,7 @@ BlazeComponent.extendComponent({
|
||||||
sort: sortIndex,
|
sort: sortIndex,
|
||||||
type: 'cardType-linkedBoard',
|
type: 'cardType-linkedBoard',
|
||||||
linkedId: impBoardId,
|
linkedId: impBoardId,
|
||||||
|
cardNumber: nextCardNumber,
|
||||||
});
|
});
|
||||||
Filter.addException(_id);
|
Filter.addException(_id);
|
||||||
Popup.back();
|
Popup.back();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue