mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 01:58:47 +02:00
(Retrofit from trunk) N.799 Setup failing (during database creation) with MetaEnum attribute having no mapping for the class they are declared in.
SVN:2.3[4637]
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user