#1092 Caller not preset when creating a ticket from a contact

SVN:trunk[3543]
This commit is contained in:
Romain Quetiez
2015-04-10 12:02:23 +00:00
parent e64b6d1d98
commit 34ff5d6ac4

View File

@@ -63,6 +63,7 @@ $G_aCachedObjects = array();
function GetRelatedObjectsAsXml(DBObject $oObj, $sRelationName, &$oLinks, &$oXmlDoc, &$oXmlNode, $iDepth = 0, $aExcludedClasses)
{
global $G_aCachedObjects;
$iMaxRecursionDepth = MetaModel::GetConfig()->Get('relations_max_depth', 20);
$aResults = array();
$bAddLinks = false;
@@ -196,6 +197,7 @@ try
$oXmlRoot->SetAttribute('position', 'left');
$oXmlRoot->SetAttribute('title', MetaModel::GetRelationDescription($sRelation).' '. htmlspecialchars($oObj->GetRawName()));
IssueLog::Info(__function__." Rel: $sRelation");
GetRelatedObjectsAsXml($oObj, $sRelation, $oLinks, $oXmlDoc, $oXmlNode, 0, $aExcludedClasses);
$oXmlRoot->AppendChild($oXmlNode);