summaryrefslogtreecommitdiffstats
path: root/client/components/rules/actions/mailActions.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/rules/actions/mailActions.js')
-rw-r--r--client/components/rules/actions/mailActions.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/components/rules/actions/mailActions.js b/client/components/rules/actions/mailActions.js
index 0e4b539e..74f6659b 100644
--- a/client/components/rules/actions/mailActions.js
+++ b/client/components/rules/actions/mailActions.js
@@ -12,8 +12,9 @@ BlazeComponent.extendComponent({
const trigger = this.data().triggerVar.get();
const ruleName = this.data().ruleName.get();
const triggerId = Triggers.insert(trigger);
- const actionId = Actions.insert({actionType: "sendEmail","emailTo":emailTo,"emailSubject":emailSubject,"emailMsg":emailMsg});
- Rules.insert({title: ruleName, triggerId: triggerId, actionId: actionId});
+ const boardId = Session.get('currentBoard');
+ const actionId = Actions.insert({actionType: "sendEmail","emailTo":emailTo,"emailSubject":emailSubject,"emailMsg":emailMsg,"boardId":boardId});
+ Rules.insert({title: ruleName, triggerId: triggerId, actionId: actionId,"boardId":boardId});
},
}];
},