summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorMarc Hartmayer <hello@hartmayer.com>2020-05-23 18:35:49 +0200
committerMarc Hartmayer <hello@hartmayer.com>2020-05-23 19:37:23 +0200
commit24b21d23bab45a5fabffbe905986271a1677b73e (patch)
tree6a5df4df0a3acafc246bc55a71ad17ecb92f85ab /client/components
parent94e47401cb54c501682d0fa29221e7fc288820d6 (diff)
downloadwekan-24b21d23bab45a5fabffbe905986271a1677b73e.tar.gz
wekan-24b21d23bab45a5fabffbe905986271a1677b73e.tar.bz2
wekan-24b21d23bab45a5fabffbe905986271a1677b73e.zip
Set '*' as default value for swimlane and list name in card move action
This is the same default as `Utils.getTriggerActionDesc` has. This commit fixes https://github.com/wekan/wekan/issues/3107.
Diffstat (limited to 'client/components')
-rw-r--r--client/components/rules/actions/boardActions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/rules/actions/boardActions.js b/client/components/rules/actions/boardActions.js
index 02910cc1..5675873f 100644
--- a/client/components/rules/actions/boardActions.js
+++ b/client/components/rules/actions/boardActions.js
@@ -68,8 +68,8 @@ BlazeComponent.extendComponent({
const ruleName = this.data().ruleName.get();
const trigger = this.data().triggerVar.get();
const actionSelected = this.find('#move-spec-action').value;
- const swimlaneName = this.find('#swimlaneName').value;
- const listName = this.find('#listName').value;
+ const swimlaneName = this.find('#swimlaneName').value || '*';
+ const listName = this.find('#listName').value || '*';
const boardId = Session.get('currentBoard');
const destBoardId = this.find('#board-id').value;
const desc = Utils.getTriggerActionDesc(event, this);