lib/openwfe/expressions/fe_iterator.rb in openwferu-0.9.4 vs lib/openwfe/expressions/fe_iterator.rb in openwferu-0.9.5

- old
+ new

@@ -62,11 +62,12 @@ # of elements in the iteration and the field "__ip__" the index of the # current iteration. # class IteratorExpression < WithTemplateExpression - attr_accessor :iterator + attr_accessor \ + :iterator def apply (workitem) if @children.length < 1 reply_to_parent(workitem) @@ -87,11 +88,11 @@ @iterator.next(self, workitem) store_itself() - get_expression_pool\ - .launch_template(self, @children[0], workitem, nil) + get_expression_pool.launch_template( + self, 0, @children[0], workitem, nil) end end # # Iterator instances keep track of the position of an iteration.