don't remove label in dataforms if there is no. Fixes #4202
This commit is contained in:
parent
7efaecc5d8
commit
37014a2ace
1 changed files with 2 additions and 1 deletions
|
@ -129,6 +129,7 @@ class DataField(ExtendedNode):
|
||||||
assert isinstance(value, basestring)
|
assert isinstance(value, basestring)
|
||||||
self.setAttr('label', value)
|
self.setAttr('label', value)
|
||||||
def fdel(self):
|
def fdel(self):
|
||||||
|
if self.getAttr('label'):
|
||||||
self.delAttr('label')
|
self.delAttr('label')
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue