[Erp5-report] r12712 - /erp5/trunk/products/ERP5Form/ProxyField.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Feb 15 10:36:45 CET 2007
Author: romain
Date: Thu Feb 15 10:36:42 2007
New Revision: 12712
URL: http://svn.erp5.org?rev=12712&view=rev
Log:
When a parameter is not delegated, check that the value is defined on the proxy field (and not only in TALES), because there is no default value for the parameter on a proxy field.
Modified:
erp5/trunk/products/ERP5Form/ProxyField.py
Modified: erp5/trunk/products/ERP5Form/ProxyField.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ProxyField.py?rev=12712&r1=12711&r2=12712&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ProxyField.py (original)
+++ erp5/trunk/products/ERP5Form/ProxyField.py Thu Feb 15 10:36:42 2007
@@ -373,7 +373,8 @@
"""
if include and \
((id in self.widget.property_names) or \
- not self.is_delegated(id)):
+ ((not self.is_delegated(id)) and \
+ (self.values.has_key(id)))):
return self.get_orig_value(id)
else:
proxied_field = self.getTemplateField()
More information about the Erp5-report
mailing list