@@ -740,7 +740,7 @@ ClassMethod Type(InternalName As %String) As %String
740
740
// For an abstract document, use the GetOther() method to try to determine its "real" class
741
741
If ##class (%RoutineMgr ).UserType (InternalName ,.docclass ,.doctype ) {
742
742
// Check for a real abstract document subclass (or GetOther() may not work)
743
- If $classmethod (docclass ," %IsA" ," %Studio.AbstractDocument" ) {
743
+ If $classmethod (docclass ," %IsA" ," %Studio.AbstractDocument" ) && $classmethod ( docclass , " %Extends " , " Ens.Util.AbstractDocument " ) {
744
744
// Grab the actual name
745
745
Set actualName = $classmethod (docclass ," GetOther" ,InternalName )
746
746
// The actualName is only valid if we get a single .cls as a result
@@ -1492,7 +1492,7 @@ ClassMethod Name(InternalName As %String, ByRef MappingExists As %Boolean) As %S
1492
1492
// For an abstract document, use the GetOther() method to try to determine its "real" class
1493
1493
if usertype ,##class (%RoutineMgr ).UserType (InternalName ,.docclass ,.doctype ) {
1494
1494
// Check for a real abstract document subclass (or GetOther() may not work)
1495
- if $classmethod (docclass ," %IsA" ," %Studio.AbstractDocument" ) {
1495
+ if $classmethod (docclass ," %IsA" ," %Studio.AbstractDocument" ) && $classmethod ( docclass , " %Extends " , " Ens.Util.AbstractDocument " ) {
1496
1496
// Grab the actual name
1497
1497
set actualName = $classmethod (docclass ," GetOther" ,InternalName )
1498
1498
// The actualName is only valid if we get a single .cls as a result
@@ -1919,3 +1919,4 @@ ClassMethod BuildCEInstallationPackage(ByRef destination As %String) As %Status
1919
1919
}
1920
1920
1921
1921
}
1922
+
0 commit comments