Commit 10eb605f authored by Yusei Tahara's avatar Yusei Tahara

Call get_recursive_orig_value if field is proxy field.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16530 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 38afaa2f
...@@ -141,7 +141,11 @@ class TALESValue(StaticValue): ...@@ -141,7 +141,11 @@ class TALESValue(StaticValue):
LOG('ERP5Form', PROBLEM, LOG('ERP5Form', PROBLEM,
'Field.get_value ( %s/%s [%s]), exception on tales_expr: ' % 'Field.get_value ( %s/%s [%s]), exception on tales_expr: ' %
( form.getId(), field.getId(), id), error=sys.exc_info()) ( form.getId(), field.getId(), id), error=sys.exc_info())
value = field.get_orig_value(id) # field may be ProxyField
try:
value = field.get_recursive_orig_value(id)
except AttributeError:
value = field.get_orig_value(id)
return self.returnValue(field, id, value) return self.returnValue(field, id, value)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment