Label of the final class attribute could only be defined on the root class (overriding it in derived classes had no effect)

SVN:trunk[3971]
This commit is contained in:
Romain Quetiez
2016-03-29 14:22:13 +00:00
parent 2a5ca467fd
commit 7868c4364c

View File

@@ -1698,6 +1698,7 @@ abstract class MetaModel
throw new CoreException("Class $sChildClass, 'finalclass' is a reserved keyword, it cannot be used as a filter code");
}
$oCloned = clone $oClassAtt;
$oCloned->SetHostClass($sChildClass);
$oCloned->SetFixedValue($sChildClass);
self::$m_aAttribDefs[$sChildClass]['finalclass'] = $oCloned;
self::$m_aAttribOrigins[$sChildClass]['finalclass'] = $sRootClass;