From 37014a2acea33242a967842f645092d5f97d7fbc Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Thu, 14 Aug 2008 17:51:14 +0000
Subject: [PATCH] don't remove label in dataforms if there is no. Fixes #4202

---
 src/common/dataforms.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/common/dataforms.py b/src/common/dataforms.py
index d0163a75ae..5855acd2ac 100644
--- a/src/common/dataforms.py
+++ b/src/common/dataforms.py
@@ -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
-- 
GitLab