Commit 55d07bd6 authored by Aurel's avatar Aurel

return empty string if proxy field is an empty string


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5580 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2eea8c63
......@@ -111,6 +111,8 @@ class ProxyWidget(Widget.Widget):
"""
Display proxy field
"""
if type(value) == type('') and value == '':
return ''
form = field.aq_parent
try:
proxy_form = getattr(form, field.get_value('form_id'))
......
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