浏览代码

N.799 Setup failing (during database creation) with MetaEnum attribute having no mapping for the class they are declared in.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4636 a333f486-631f-4898-b8df-5754b55c2be0
romainq 8 年之前
父节点
当前提交
29106a0363
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      core/attributedef.class.inc.php

+ 9 - 1
core/attributedef.class.inc.php

@@ -3586,8 +3586,16 @@ class AttributeMetaEnum extends AttributeEnum
 		else
 		{
 			$sParent = MetaModel::GetParentClass($sClass);
-			$aMappingData = $this->GetMapRule($sParent);
+			if (is_null($sParent))
+			{
+				$aMappingData = null;
+			}
+			else
+			{
+				$aMappingData = $this->GetMapRule($sParent);
+			}
 		}
+
 		return $aMappingData;
 	}
 }