mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
N.799 Setup failing (during database creation) with MetaEnum attribute having no mapping for the class they are declared in.
SVN:trunk[4636]
This commit is contained in:
@@ -3586,8 +3586,16 @@ class AttributeMetaEnum extends AttributeEnum
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$sParent = MetaModel::GetParentClass($sClass);
|
$sParent = MetaModel::GetParentClass($sClass);
|
||||||
$aMappingData = $this->GetMapRule($sParent);
|
if (is_null($sParent))
|
||||||
|
{
|
||||||
|
$aMappingData = null;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$aMappingData = $this->GetMapRule($sParent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $aMappingData;
|
return $aMappingData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user