From 772954711a0db4ed6c6c383552b7f81ed4afe56d Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Thu, 30 Mar 2017 19:23:43 +0000 Subject: [PATCH] N.799 Setup failing (during database creation) with MetaEnum attribute having no mapping for the class they are declared in. SVN:trunk[4636] --- core/attributedef.class.inc.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index e8c3f9ac59..49fb56d593 100644 --- a/core/attributedef.class.inc.php +++ b/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; } }