summaryrefslogtreecommitdiffstats
path: root/client/components/lists
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-04-16 16:38:20 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-08-10 23:57:35 +0200
commit64367a01dd6b86982c22b4c124e8f37474e9cb08 (patch)
tree8c8b5b9bf787cce7c7cc86db0480641722abfaba /client/components/lists
parent5644ef66af2fb6e2bfb629a499bb21130bfd5c73 (diff)
downloadwekan-64367a01dd6b86982c22b4c124e8f37474e9cb08.tar.gz
wekan-64367a01dd6b86982c22b4c124e8f37474e9cb08.tar.bz2
wekan-64367a01dd6b86982c22b4c124e8f37474e9cb08.zip
Link description
Diffstat (limited to 'client/components/lists')
-rw-r--r--client/components/lists/listBody.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js
index 39614108..2c8b1af7 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -281,6 +281,8 @@ BlazeComponent.extendComponent({
archived: false,
'members.userId': Meteor.userId(),
_id: {$ne: Session.get('currentBoard')},
+ }, {
+ sort: ['title'],
})._id;
// Subscribe to this board
subManager.subscribe('board', boardId);
@@ -370,6 +372,7 @@ BlazeComponent.extendComponent({
//IMPORT BOARD
evt.stopPropagation();
evt.preventDefault();
+ const impBoardId = $('.js-select-boards option:selected').val();
const _id = Cards.insert({
title: $('.js-select-boards option:selected').text(), //dummy
listId: this.listId,
@@ -377,7 +380,8 @@ BlazeComponent.extendComponent({
boardId: this.boardId,
sort: Lists.findOne(this.listId).cards().count(),
type: 'cardType-importedBoard',
- importedId: $('.js-select-boards option:selected').val(),
+ importedId: impBoardId,
+ description: Boards.findOne({_id: impBoardId}).description,
});
Filter.addException(_id);
Popup.close();