From 2e8a06f1518b9eb0fc59aff4f6612302dc470a46 Mon Sep 17 00:00:00 2001 From: Y0hy0h Date: Thu, 18 Feb 2021 00:35:52 +0100 Subject: [PATCH] Fix custom labels not being displayed Custom labels are represented as two fields with a prefix, e.g., `group1.X-ABLabel` and `group1.TEL`. Previously, `canDisplay` would check whether it could display `group1.TEL`, which is never a known property type. Instead we now check the property type after the `.`, which in our example is `TEL` which is displayable. Signed-off-by: Y0hy0h --- src/components/ContactDetails.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue index 73958ee66..6c93ebdef 100644 --- a/src/components/ContactDetails.vue +++ b/src/components/ContactDetails.vue @@ -759,7 +759,9 @@ export default { * @returns {boolean} */ canDisplay(property) { - const propModel = rfcProps.properties[property.name] + // Make sure we have some model for the property and check for ITEM.PROP custom label format + const propModel = rfcProps.properties[property.name.split('.').pop()] + const propType = propModel && propModel.force ? propModel.force : property.getDefaultType()