Commit 5966a911 authored by Romain Courteaud's avatar Romain Courteaud

Add a default value on not delegated parameter.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13526 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 62d479a1
......@@ -318,6 +318,10 @@ class ProxyField(ZMIField):
tales.update(result)
self.tales = tales
self.delegated_list = surcharge_list
# Put a default value on not delegated parameter
for key in result.keys():
if not self.values.has_key(key):
self.values[key] = self.get_recursive_orig_value(key, include=0)
def getTemplateField(self):
"""
......
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