diff --git a/apps/server/src/utils/parserFunctions.ts b/apps/server/src/utils/parserFunctions.ts index db95bca385..beb55077ba 100644 --- a/apps/server/src/utils/parserFunctions.ts +++ b/apps/server/src/utils/parserFunctions.ts @@ -322,6 +322,7 @@ export function sanitiseCustomFields(data: object): CustomFields { const keyFromLabel = customFieldLabelToKey(field.label); //Test label and key cohesion, but allow old lowercased keys to stay + //TODO: the `toLocaleLowerCase` part here is to conserve keys from old projects and could be removed at some point (okt. 2024) const key = originalKey.toLocaleLowerCase() === keyFromLabel.toLocaleLowerCase() ? originalKey : keyFromLabel; if (key in newCustomFields) { continue;