Forráskód Böngészése

Support of Custom Fields in the Excel export... not really nice but should be usable.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4256 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 9 éve
szülő
commit
a6a2b7b1a7

+ 5 - 0
core/excelbulkexport.class.inc.php

@@ -188,6 +188,11 @@ EOF
 				$oAttDef = MetaModel::GetAttributeDef(get_class($oObj), $sAttCode);
 				$sRet = $oAttDef->GetAsCSV($value, '', '', $oObj);
 			}
+			else if ($value instanceOf ormCustomFieldsValue)
+			{
+				$oAttDef = MetaModel::GetAttributeDef(get_class($oObj), $sAttCode);
+				$sRet = $oAttDef->GetAsCSV($value, "\n", '', $oObj);
+			}
 			else
 			{
 				$oAttDef = MetaModel::GetAttributeDef(get_class($oObj), $sAttCode);

+ 1 - 1
core/ormcustomfieldsvalue.class.inc.php

@@ -74,7 +74,7 @@ class ormCustomFieldsValue
 	{
 		$oAttDef = MetaModel::GetAttributeDef(get_class($this->oHostObject), $this->sAttCode);
 		$oHandler = $oAttDef->GetHandler($this->GetValues());
-		return $oHandler->GetAsCSV($this->aCurrentValues, $sSeparator = ',', $sTextQualifier = '"', $bLocalize = true);
+		return $oHandler->GetAsCSV($this->aCurrentValues, $sSeparator, $sTextQualifier, $bLocalize);
 	}
 
 	/**