Przeglądaj źródła

Faster navigator: less data output, and also more robust since so strange data appeared in the export of the linkset attributes, that broke the XML export...

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@601 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 lat temu
rodzic
commit
2f3164c598
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      pages/xml.navigator.php

+ 4 - 1
pages/xml.navigator.php

@@ -44,7 +44,10 @@ function AddNodeDetails(&$oNode, $oObj)
 	{
 		$oAttDef = MetaModel::GetAttributeDef(get_class($oObj), $sAttCode);
 		$aLabels[] = $oAttDef->GetLabel();
-		$oNode->SetAttribute('att_'.$index, $oObj->Get($sAttCode));
+		if (!$oAttDef->IsLinkSet())
+		{
+			$oNode->SetAttribute('att_'.$index, $oObj->Get($sAttCode));
+		}
 		$index++;
 	}
 	$oNode->SetAttribute('zlist', implode(',', $aLabels));