Browse Source

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.
Marc Hartmayer 5 years ago
parent
commit
24b21d23ba
1 changed files with 2 additions and 2 deletions
  1. 2 2
      client/components/rules/actions/boardActions.js

+ 2 - 2
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);