insert linked card set's now the next card number too

This commit is contained in:
Martin Filser 2023-01-14 23:44:04 +01:00
parent 3a287a494b
commit dcb9fb7465

View file

@ -547,6 +547,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-cards option:selected').text(), //dummy title: $('.js-select-cards option:selected').text(), //dummy
@ -556,6 +557,7 @@ BlazeComponent.extendComponent({
sort: sortIndex, sort: sortIndex,
type: 'cardType-linkedCard', type: 'cardType-linkedCard',
linkedId, linkedId,
cardNumber: nextCardNumber,
}); });
Filter.addException(_id); Filter.addException(_id);
Popup.back(); Popup.back();