Commit 06547f56 authored by Julien Muchembled's avatar Julien Muchembled

Implement get_orig_value for proxy fields.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25621 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 943733c2
......@@ -565,6 +565,13 @@ class ProxyField(ZMIField):
result = ZMIField._get_user_input_value(self, key, REQUEST)
return result
security.declareProtected('Access contents information', 'get_orig_value')
def get_orig_value(self, id):
"""Get value for id; don't do any override calculation.
"""
if id not in self.widget.property_names and self.is_delegated(id):
return self.getTemplateField().get_orig_value(id)
return ZMIField.get_orig_value(self, id)
#
# Performance improvement
......
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