Commit d078e422 authored by Yoshinori Okuji's avatar Yoshinori Okuji

The previous way was overkill.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17012 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 56a20d0c
......@@ -257,6 +257,9 @@ def get_value(self, id, **kw):
if self._p_oid is None:
return self._original_get_value(id, **kw)
if 1:
value = getFieldValue(self, field, id, **kw)
else:
cache_id = ('Form.get_value',
self._p_oid,
field._p_oid,
......@@ -304,7 +307,7 @@ def _get_default(self, key, value, REQUEST):
# Dynamic Patch
original_get_value = Field.get_value
# Field.get_value = get_value
Field.get_value = get_value
Field._original_get_value = original_get_value
Field._get_default = _get_default
Field.om_icons = om_icons
......
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