From 5726b2cd5c69432754fe524be5fef097b15128d0 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Thu, 23 Aug 2012 14:42:34 +0000 Subject: [PATCH] Bug fix: properly export boolean attributes to XML (a value of false was creating an empty XML tag) SVN:trunk[2154] --- 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 50c7f9860..3b44fae0a 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -1125,6 +1125,11 @@ class AttributeBoolean extends AttributeInteger if ($value) return 1; return 0; } + + public function GetAsXML($sValue, $oHostObject = null) + { + return $sValue ? '1' : '0'; + } } /**