From 9755af9b7bfb422b8a1e6abc4ccaa14d8680c425 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Thu, 23 Aug 2012 14:41:16 +0000 Subject: [PATCH] Bug fix: properly export boolean attributes to XML (a value of false was creating an empty XML tag) SVN:1.2.1[2153] --- core/attributedef.class.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index cf67f29cb..be1adad43 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -1085,6 +1085,11 @@ class AttributeBoolean extends AttributeInteger if ($value) return 1; return 0; } + + public function GetAsXML($sValue, $oHostObject = null) + { + return $sValue ? '1' : '0'; + } } /**