don't remove label in dataforms if there is no. Fixes #4202

This commit is contained in:
Yann Leboulanger 2008-08-14 17:51:14 +00:00
parent 7efaecc5d8
commit 37014a2ace
1 changed files with 2 additions and 1 deletions

View File

@ -129,7 +129,8 @@ class DataField(ExtendedNode):
assert isinstance(value, basestring)
self.setAttr('label', value)
def fdel(self):
self.delAttr('label')
if self.getAttr('label'):
self.delAttr('label')
return locals()
@nested_property