Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Grails-AuditLogging 0.5.4
-
Labels:None
-
Environment:Plugin Version 0.5.2, Grails 1.2.2
Description
It looks like the plugin tries to add the PreDeleteEventListerer and others without affecting other listeners, but the events don't fire.
I put in a simple workaround to check for it, here is an example for AuditLogListener.onPostInsert() - put this towards the end of the method after audit logging has executed.
if (entity.metaClass.respondsTo(entity, 'afterInsert')) {
log.error "afterInsert exists on domain Class $
. Calling it"
entity.afterInsert()
}
Issue Links
- relates to
-
GPAUDITLOGGING-9
audit-logging breaks deletes in grails 1.3.X (grails hibernate-plugin 1.3X)
-
-
GRAILS-5725
Allow plugins to easily insert hibernate event listeners
-
I'll schedule this fix for the next point release.