From a574b1b4e8258183fc599150902d5b271b8928bc Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Wed, 14 Sep 2016 15:54:33 +0000 Subject: [PATCH] (Retrofit from trunk) #1325 Could not declare an ext key to a subclass (view could not be created). This commit is minimalistic and aims at being retrofitted into the various branches of iTop. It will be followed by a second commit, which aims at completing the fix by aligning the internal data structures of iTop... and possibly fix an issue (?) SVN:2.3[4400] --- core/metamodel.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/metamodel.class.php b/core/metamodel.class.php index 51062ecd1a..37dc27a2b5 100644 --- a/core/metamodel.class.php +++ b/core/metamodel.class.php @@ -1779,7 +1779,7 @@ abstract class MetaModel $oFriendlyName = new AttributeFriendlyName($sFriendlyNameAttCode, $sAttCode); $oFriendlyName->SetHostClass($sClass); self::$m_aAttribDefs[$sClass][$sFriendlyNameAttCode] = $oFriendlyName; - self::$m_aAttribOrigins[$sClass][$sFriendlyNameAttCode] = $sRemoteClass; + self::$m_aAttribOrigins[$sClass][$sFriendlyNameAttCode] = self::$m_aAttribOrigins[$sClass][$sAttCode]; $oFriendlyNameFlt = new FilterFromAttribute($oFriendlyName); self::$m_aFilterDefs[$sClass][$sFriendlyNameAttCode] = $oFriendlyNameFlt; self::$m_aFilterOrigins[$sClass][$sFriendlyNameAttCode] = $sRemoteClass;