summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-02-28 12:29:14 +0200
committerLauri Ojansivu <x@xet7.org>2019-02-28 12:29:14 +0200
commita3d71dd6943c09ac42e4def644bef1be291131e6 (patch)
tree323d4f679d399c132401d53a353979e3b670b3dd
parentad75c541cff2c27c441a0fb67d52c57180020594 (diff)
parenta5c39342bab0fa78c7645b3445c828221870a097 (diff)
downloadwekan-a3d71dd6943c09ac42e4def644bef1be291131e6.tar.gz
wekan-a3d71dd6943c09ac42e4def644bef1be291131e6.tar.bz2
wekan-a3d71dd6943c09ac42e4def644bef1be291131e6.zip
Merge remote-tracking branch 'andresmanelli/edge' into edge
-rw-r--r--client/components/cards/cardDetails.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index 73a7a67d..4df42586 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -460,11 +460,11 @@ Template.copyCardPopup.events({
'click .js-done'() {
const card = Cards.findOne(Session.get('currentCard'));
const lSelect = $('.js-select-lists')[0];
- card.listId = lSelect.options[lSelect.selectedIndex].value;
+ listId = lSelect.options[lSelect.selectedIndex].value;
const slSelect = $('.js-select-swimlanes')[0];
- card.swimlaneId = slSelect.options[slSelect.selectedIndex].value;
+ const swimlaneId = slSelect.options[slSelect.selectedIndex].value;
const bSelect = $('.js-select-boards')[0];
- card.boardId = bSelect.options[bSelect.selectedIndex].value;
+ const boardId = bSelect.options[bSelect.selectedIndex].value;
const textarea = $('#copy-card-title');
const title = textarea.val().trim();
// insert new card to the bottom of new list
@@ -473,7 +473,7 @@ Template.copyCardPopup.events({
if (title) {
card.title = title;
card.coverId = '';
- const _id = card.copy();
+ const _id = card.copy(boardId, swimlaneId, listId);
// In case the filter is active we need to add the newly inserted card in
// the list of exceptions -- cards that are not filtered. Otherwise the
// card will disappear instantly.