-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Dear experts,
we have a CDS entity with a string valued primary key
entity Samples : CodeList {
key ID : String
name : String
}
Because of business requirements the primary key may include a '/'. Annotating any field of the Samples entity with the @changelog annotation causes an 'cannot read property of undefined' error when editing & saving this field in draft mode. Specifically, in the _formatObjectID method of the change-log.js the path variable is incorrectly split at the wrong '/'.
const _formatObjectID = async function (changes, reqData) {
const objectIdCache = new Map()
for (const change of changes) {
const path = change.serviceEntityPath.split('/')
const curNodePathVal = path.pop()
const parentNodePathVal = path.pop()
...
Kind regards
Christoph
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request