Commit 6d2a16f6 authored by Aurel's avatar Aurel

also check returned value is not '' as now accessor

return default value defined in field


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10499 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7688b486
......@@ -75,7 +75,7 @@ class BankAccount(Folder, Coordinate, MetaNode):
"""reference depends on the site configuration.
"""
value = self._baseGetReference(*args, **kw)
if value is None:
if value in (None, ''):
# Try to get a skin named PortalType_getReference.
portal_type = self.getPortalType()
method = getattr(self, '%s_getReference' % portal_type.replace(' ', ''), None)
......
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