Merge pull request #2270 from andresmanelli/fix_2266

Fix #2266
reviewable/pr2269/r1
Lauri Ojansivu 6 years ago committed by GitHub
commit f8cbbfc2cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      client/components/lists/list.js

@ -70,7 +70,7 @@ BlazeComponent.extendComponent({
const currentBoard = Boards.findOne(Session.get('currentBoard'));
let swimlaneId = '';
const boardView = Meteor.user().profile.boardView;
if (boardView === 'board-view-swimlanes')
if (boardView === 'board-view-swimlanes' || currentBoard.isTemplatesBoard())
swimlaneId = Blaze.getData(ui.item.parents('.swimlane').get(0))._id;
else if ((boardView === 'board-view-lists') || (boardView === 'board-view-cal'))
swimlaneId = currentBoard.getDefaultSwimline()._id;

Loading…
Cancel
Save