Skip to content

Commit

Permalink
Fix foreach/repeat context
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Sep 16, 2013
1 parent 9c39235 commit b845d2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -69,6 +69,7 @@ public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
queue.addDefinition("parent_queue", scriptEntry.getResidingQueue().id);
scriptEntry.getResidingQueue().addDefinition("value", value);
queue.addDefinition("value", value);
queue.getAllDefinitions().putAll(scriptEntry.getResidingQueue().getAllDefinitions());
queue.addEntries(newEntries);
queue.start();
}
Expand Down
Expand Up @@ -66,6 +66,7 @@ public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
queue.addDefinition("parent_queue", scriptEntry.getResidingQueue().id);
scriptEntry.getResidingQueue().addDefinition("value", String.valueOf(incr + 1));
queue.addDefinition("value", String.valueOf(incr + 1));
queue.getAllDefinitions().putAll(scriptEntry.getResidingQueue().getAllDefinitions());
queue.addEntries(newEntries);
queue.start();
}
Expand Down

0 comments on commit b845d2f

Please sign in to comment.