lib/openwfe/expressions/wtemplate.rb in openwferu-0.9.15 vs lib/openwfe/expressions/wtemplate.rb in openwferu-0.9.16

- old
+ new

@@ -28,12 +28,10 @@ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. #++ # -# $Id: definitions.rb 2725 2006-06-02 13:26:32Z jmettraux $ -# # # "made in Japan" # # John Mettraux at openwfe.org @@ -54,12 +52,14 @@ # # this overriden method takes care of removing all the children # (templates) before replying to its parent. # def reply_to_parent (workitem) + @children.each do |child| get_expression_pool.remove(child) end + super(workitem) end end end