@@ -110,7 +110,7 @@ public static IMendixObject createAuditLogItems(final IMendixObject auditableObj
110110 String association = null ;
111111
112112 // Set the association for the AuditableObject inheriting from superclass
113- if (Core . isSubClassOf ( AudittrailSuperClass . getType (), auditableObject .getType ())) {
113+ if (auditableObject . getMetaObject (). isSubClassOf ( AudittrailSuperClass .getType ())) {
114114 logObject .setValue (sudoContext , Log .MemberNames .Log_AudittrailSuperClass .toString (),
115115 auditableObject .getId ());
116116 } else {
@@ -122,13 +122,13 @@ public static IMendixObject createAuditLogItems(final IMendixObject auditableObj
122122 if (association == null ) {
123123 final IMetaObject imObject = Core .getMetaObject (auditableObject .getType ());
124124 for (final IMetaAssociation ass : imObject .getMetaAssociationsParent ()) {
125- if (Core . isSubClassOf ( Log . getType (), ass .getChild ().getId ())
125+ if (ass .getChild ().isSubClassOf ( Log . getType ())
126126 && ass .getType () == AssociationType .REFERENCESET ) {
127127 association = ass .getName ();
128128
129129 // Ticket 56528
130130 final MendixObjectReferenceSet logReferenceSet = (MendixObjectReferenceSet ) auditableObject
131- .getMember (sudoContext , association );
131+ .getMember (association );
132132 logReferenceSet .addValue (sudoContext , logObject .getId ());
133133
134134 setAssociationName (auditableObject .getType (), association );
@@ -138,7 +138,7 @@ public static IMendixObject createAuditLogItems(final IMendixObject auditableObj
138138 // If not found, try to look up the child of the association
139139 if (association == null ) {
140140 for (final IMetaAssociation ass : imObject .getMetaAssociationsChild ()) {
141- if (Core . isSubClassOf ( Log . getType (), ass .getParent ().getId ())
141+ if (ass .getParent ().isSubClassOf ( Log . getType ())
142142 && !ass .getName ().equals (Log .MemberNames .Log_User .toString ())
143143 && (ass .getType () == AssociationType .REFERENCESET
144144 || ass .getOwner () != AssociationOwner .BOTH )) {
@@ -156,7 +156,7 @@ public static IMendixObject createAuditLogItems(final IMendixObject auditableObj
156156 else {
157157 try {
158158 if (auditableObject .hasMember (association )) {
159- ((MendixObjectReferenceSet ) auditableObject .getMember (context , association ))
159+ ((MendixObjectReferenceSet ) auditableObject .getMember (association ))
160160 .addValue (sudoContext , logObject .getId ());
161161 } else if (logObject .hasMember (association )) {
162162 logObject .setValue (sudoContext , association , auditableObject .getId ());
0 commit comments