浏览代码

- Minor fixes...

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@661 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 年之前
父节点
当前提交
ea0de0e6b7
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      application/wizardhelper.class.inc.php
  2. 1 1
      modules/itop-config-mgmt-1.0.0/model.itop-config-mgmt.php

+ 1 - 1
application/wizardhelper.class.inc.php

@@ -76,7 +76,7 @@ class WizardHelper
 							if ( isset($aLinkedObject[$sLinkedAttCode]) && ($aLinkedObject[$sLinkedAttCode] !== null) )
 							{
 								$sLinkedAttDef = MetaModel::GetAttributeDef($sLinkedClass, $sLinkedAttCode);
-								if (($sLinkedAttDef->IsExternalKey()) && ($aLinkedObject[$sLinkedAttCode] != '') )
+								if (($sLinkedAttDef->IsExternalKey()) && ($aLinkedObject[$sLinkedAttCode] != '') && ($aLinkedObject[$sLinkedAttCode] != 0) )
 								{
 									// For external keys: load the target object so that external fields
 									// get filled too

+ 1 - 1
modules/itop-config-mgmt-1.0.0/model.itop-config-mgmt.php

@@ -72,7 +72,7 @@ class Location extends cmdbAbstractObject
 			"key_type" => "autoincrement",
 			"name_attcode" => "name",
 			"state_attcode" => "",
-			"reconc_keys" => array(""),
+			"reconc_keys" => array("name", "org_id"),
 			"db_table" => "location",
 			"db_key_field" => "id",
 			"db_finalclass_field" => "",