Skip to content

Commit

Permalink
Sync triggerId on conditions and dampening in fullTrigger creation
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasponce committed Feb 11, 2016
1 parent edbe6a5 commit 947e395
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2993,12 +2993,14 @@ private void addFullTrigger(String tenantId, FullTrigger fullTrigger) throws Exc
if (!isEmpty(fullTrigger.getDampenings())) {
for (Dampening d : fullTrigger.getDampenings()) {
d.setTenantId(tenantId);
d.setTriggerId(trigger.getId());
addDampening(d);
}
}
if (!isEmpty(fullTrigger.getConditions())) {
for (Condition c : fullTrigger.getConditions()) {
c.setTenantId(tenantId);
c.setTriggerId(trigger.getId());
addCondition(c);
}
}
Expand Down

0 comments on commit 947e395

Please sign in to comment.