diff options
author | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-09-12 00:52:29 +0200 |
---|---|---|
committer | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-09-12 00:52:29 +0200 |
commit | 34b37116cf8c618a4ea12b13d969c24654f4248b (patch) | |
tree | 287193373538fb0c0e6e7d634a21c6e5f85b3811 /client/components/rules/actions/mailActions.js | |
parent | 1f5f429fc4535d251d32335eea7e44904a924650 (diff) | |
download | wekan-34b37116cf8c618a4ea12b13d969c24654f4248b.tar.gz wekan-34b37116cf8c618a4ea12b13d969c24654f4248b.tar.bz2 wekan-34b37116cf8c618a4ea12b13d969c24654f4248b.zip |
Fixed rule allows
Diffstat (limited to 'client/components/rules/actions/mailActions.js')
-rw-r--r-- | client/components/rules/actions/mailActions.js | 5 |
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}); }, }]; }, |