diff --git a/bin/report/render/rml2pdf/utils.py b/bin/report/render/rml2pdf/utils.py index ca51f136b6d..be8695e7eb3 100644 --- a/bin/report/render/rml2pdf/utils.py +++ b/bin/report/render/rml2pdf/utils.py @@ -55,7 +55,7 @@ def xml2str(s): def _child_get(node, self=None, tagname=None): for n in node: if self and self.localcontext and n.get('rml_loop'): - oldctx = self.localcontext + oldctx = dict(self.localcontext) for ctx in eval(n.get('rml_loop'),{}, self.localcontext): self.localcontext.update(ctx)