mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Bug fix: properly export boolean attributes to XML (a value of false was creating an empty XML tag)
SVN:trunk[2154]
This commit is contained in:
@@ -1125,6 +1125,11 @@ class AttributeBoolean extends AttributeInteger
|
||||
if ($value) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
public function GetAsXML($sValue, $oHostObject = null)
|
||||
{
|
||||
return $sValue ? '1' : '0';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user