Deleting object with labelfield with "." character throws error

Description

Example:
Object `event_sponsor` uses label from another object and has the label field `event_partner.name`.
When deleting the object `event_sponsor`, messageBox.info part at the end of the method __deleteRecordAction will fail and throws error.
Reloading the page again will bring user back to a working page.
This is because records[labelfield][1] doesn't exist as preside selects the label field as `name` instead of `event_partner.name`.
This only happens specifically when the labelfield contains "." character.

Environment

None

Status

Assignee

Unassigned

Reporter

Kok Ann

Labels

None

Accepted

Yes

Fix versions

Priority

Medium
Configure