Commit 19aa7408 authored by Romain Courteaud's avatar Romain Courteaud

Do not return strange string which as to be considered as empty.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9769 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 11457ad0
...@@ -80,6 +80,9 @@ class GeographicAddress(Coordinate, Base): ...@@ -80,6 +80,9 @@ class GeographicAddress(Coordinate, Base):
else : else :
result = ('%s\n%s %s') % (self.getStreetAddress() or '', result = ('%s\n%s %s') % (self.getStreetAddress() or '',
self.getCity() or '', self.getZipCode() or '') self.getCity() or '', self.getZipCode() or '')
# XXX Not very clean
if result == "\n ":
result = ""
return result return result
security.declareProtected(Permissions.ModifyPortalContent, 'fromText') security.declareProtected(Permissions.ModifyPortalContent, 'fromText')
......
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