瀏覽代碼

Fixed a stopper bug in the display of N-N links from the default object display procedure (not using templates)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@141 a333f486-631f-4898-b8df-5754b55c2be0
romainq 15 年之前
父節點
當前提交
436a4fb235
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      application/cmdbabstract.class.inc.php

+ 6 - 1
application/cmdbabstract.class.inc.php

@@ -179,7 +179,12 @@ abstract class cmdbAbstractObject extends CMDBObject
 					if (count($aLinkedObjects) > 0)
 					if (count($aLinkedObjects) > 0)
 					{
 					{
 						$oSet = CMDBObjectSet::FromArray($sLinkClass, $aLinkedObjects);
 						$oSet = CMDBObjectSet::FromArray($sLinkClass, $aLinkedObjects);
-						$this->DisplaySet($oPage, $oSet, $oAttDef->GetExtKeyToMe(), true, false, $this->GetKey(), $oAttDef->GetExtKeyToRemote());
+						$aParams = array(
+							'link_attr' => $oAttDef->GetExtKeyToMe(),
+							'object_id' => $this->GetKey(),
+							'target_attr' => $oAttDef->GetExtKeyToRemote(),
+						); 
+						self::DisplaySet($oPage, $oSet, $aParams);
 					}
 					}
 				}
 				}
 			}
 			}