Audit trail throws exception for objects without labelField

Description

The audit trail page will throw a PresideObjectService.no.label.field exception caused by datamanager-enabled preside-objects without label.

The exception stops execution of function datamanager of /preside/system/handlers/renderers/content/AuditLogEntry.cfc when calling PresideObjectService.getObjectAttribute()

If a preside-object does not have any label property or labelField annotation it should not cause the audit trail page to crash. In this context the label is only used to build a link to the default action for the object type in question. I suggest catching the exception and using a fallback, i.e.
`<a href="linkToRecord">See Record</a>`

Environment

None

Activity

Show:
Dominic Watson
March 18, 2019, 5:01 PM

Nice one, thanks . Will be released in 10.10.49

Fixed

Assignee

Unassigned

Reporter

Sacha Moufarrege

Accepted

Yes

Fix versions

Affects versions

Priority

Medium
Configure