Skip to content
Snippets Groups Projects
Commit 37014a2a authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 7efaecc5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment