Don't use a nested context dictionary to evaluate record expression

The nested context dictionary override the value of the fields.

issue2506
This commit is contained in:
Cédric Krier committed 2012-03-22 10:18:47 +01:00
1 parent 4517e4495c
commit 3e65c63710
1 file changed
+1 -1
+1 -1
View File
@@ -447,7 +447,7 @@ class Record(SignalEvent):
if check_load:
self._check_load()
ctx = rpc.CONTEXT.copy()
ctx['context'] = ctx
ctx['context'] = ctx.copy()
for name, field in self.group.fields.items():
ctx[name] = field.get_eval(self, check_load=check_load)