Browse Source

Fix for Trac #625: CSV export of boolean attributes was broken (false => "")

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2468 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 years ago
parent
commit
da7845e5c8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      core/attributedef.class.inc.php

+ 4 - 0
core/attributedef.class.inc.php

@@ -1259,6 +1259,10 @@ class AttributeBoolean extends AttributeInteger
 	{
 		return $sValue ? '1' : '0';
 	}
+	public function GetAsCSV($sValue, $sSeparator = ',', $sTextQualifier = '"', $oHostObject = null, $bLocalize = true)
+	{
+		return $sValue ? '1' : '0';
+	}
 }
 
 /**