mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 21:17:18 -04:00
fix: use current boardId when a worker moves a card
This commit is contained in:
parent
2b24ebf539
commit
305658da3a
1 changed files with 5 additions and 1 deletions
|
@ -668,7 +668,11 @@ Template.moveCardPopup.events({
|
|||
// instead from a “component” state.
|
||||
const card = Cards.findOne(Session.get('currentCard'));
|
||||
const bSelect = $('.js-select-boards')[0];
|
||||
const boardId = bSelect.options[bSelect.selectedIndex].value;
|
||||
let boardId;
|
||||
// if we are a worker, we won't have a board select so we just use the
|
||||
// current boardId of the card.
|
||||
if (bSelect) boardId = bSelect.options[bSelect.selectedIndex].value;
|
||||
else boardId = card.boardId;
|
||||
const lSelect = $('.js-select-lists')[0];
|
||||
const listId = lSelect.options[lSelect.selectedIndex].value;
|
||||
const slSelect = $('.js-select-swimlanes')[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue